generated from enclaive/enclaive-docker-ruby-sgx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflask.manifest.template
59 lines (51 loc) · 1.62 KB
/
flask.manifest.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
libos.entrypoint = "/usr/bin/python3"
loader.argv_src_file = "file:/app/args.txt"
sgx.nonpie_binary = true
loader.entrypoint = "file:{{ gramine.libos }}"
loader.env.LD_LIBRARY_PATH = "/lib:{{ arch_libdir }}"
loader.log_level = "error"
loader.log_file = "flask-gramine-sgx.log"
sgx.max_threads = 8
sgx.debug = false
fs.mounts = [
{ path = "/etc/", uri = "file:/etc/" },
{ path = "/usr/", uri = "file:/usr/" },
{ path = "/lib/", uri = "file:/{{ gramine.runtimedir() }}/" },
{ path = "{{ arch_libdir }}/", uri = "file:{{ arch_libdir }}/" },
{ path = "/app/data", uri = "file:/data/", type = "encrypted", key_name = "logkey" },
]
fs.insecure__keys.logkey = "ffeeddccbbaa99887766554433221100"
sgx.trusted_files = [
"file:{{ gramine.libos}}",
"file:{{ gramine.runtimedir() }}/",
"file:{{ arch_libdir }}/",
"file:static/message.txt",
"file:/app/args.txt",
"file:/app/app.py",
"file:/usr/bin/python3",
"file:/usr/local/lib/python3.8/",
"file:/usr/lib/python3.8/",
"file:/usr/lib/python3/",
"file:/etc/nsswitch.conf",
"file:/etc/passwd",
"file:/etc/mime.types",
"file:/usr/bin/uname",
"file:app.py",
"file:/etc/host.conf",
"file:/etc/resolv.conf",
"file:/etc/hosts",
]
sgx.allowed_files = [
"file:/usr/lib/python3.8/",
"file:/usr/local/lib/python3.8/",
"file:/usr/lib/python3/",
"file:/etc/nsswitch.conf",
"file:/etc/passwd",
"file:/etc/mime.types",
"file:/usr/bin/uname",
"file:app.py",
"file:__pycache__/",
"file:/etc/host.conf",
"file:/etc/resolv.conf",
"file:/etc/hosts",
]