-
Notifications
You must be signed in to change notification settings - Fork 98
/
example.config.toml
179 lines (165 loc) · 7.78 KB
/
example.config.toml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# The ttrpc sock of CDH that is used to listen to the requests
socket = "unix:///run/confidential-containers/cdh.sock"
# KBC related configs.
[kbc]
# Required. The KBC name. It could be `cc_kbc`, `online_sev_kbc` or
# `offline_fs_kbc`. All the items under `[credentials]` will be
# retrieved using the kbc.
name = "cc_kbc"
# Required. The URL of KBS. If `name` is either `cc_kbc` or
# `online_sev_kbc`, this URL will be used to connect to the
# CoCoKBS (for cc_kbc) or Simple-KBS (for online_sev_kbc). If
# `name` is `offline_fs_kbc`, This URL will be ignored.
url = "http://example.io:8080"
# Optional. The public key cert of KBS. If not given, CDH will
# try to use HTTP to connect the server.
kbs_cert = """
-----BEGIN CERTIFICATE-----
MIIFTDCCAvugAwIBAgIBADBGBgkqhkiG9w0BAQowOaAPMA0GCWCGSAFlAwQCAgUA
oRwwGgYJKoZIhvcNAQEIMA0GCWCGSAFlAwQCAgUAogMCATCjAwIBATB7MRQwEgYD
VQQLDAtFbmdpbmVlcmluZzELMAkGA1UEBhMCVVMxFDASBgNVBAcMC1NhbnRhIENs
YXJhMQswCQYDVQQIDAJDQTEfMB0GA1UECgwWQWR2YW5jZWQgTWljcm8gRGV2aWNl
czESMBAGA1UEAw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mdXce0LD6
9RHr+r+ceyE79gmK31bI9DYiJoL4LeGdXZ3gMOVDR1OnDos5lOBcV+quJ6JujpgH
d9g3Sa7Du7pusD9Fdap98ocZslRfFjFi//2YdVM4MKbq6IwpYNB+2PCEKNC7SfbO
NgZYJuPZnM/wViES/cP7MZNJ1KUKBI9yh6TmlSsZZOclGJvrOsBZimTXpATjdNMt
cluKwqAUUzYQmU7bf2TMdOXyA9iH5wIpj1kWGE1VuFADTKILkTc6LzLzOWCofLxf
onhTtSDtzIv/uel547GZqq+rVRvmIieEuEvDETwuookfV6qu3D/9KuSr9xiznmEg
xynud/f525jppJMcD/ofbQxUZuGKvb3f3zy+aLxqidoX7gca2Xd9jyUy5Y/83+ZN
bz4PZx81UJzXVI9ABEh8/xilATh1ZxOePTBJjN7lgr0lXtKYjV/43yyxgUYrXNZS
oLSG2dLCK9mjjraPjau34Q==
-----END CERTIFICATE-----
"""
# credentials are items that will be retrieved from KBS when CDH
# is launched. `resource_uri` refers to the KBS resource uri and
# `path` is where to place the file.
# `path` must be with prefix `/run/confidential-containers/cdh`,
# or it will be blocked by CDH.
[[credentials]]
path = "/run/confidential-containers/cdh/kms-credential/aliyun/ecsRamRole.json"
resource_uri = "kbs:///default/aliyun/ecs_ram_role"
[[credentials]]
path = "/run/confidential-containers/cdh/test/file"
resource_uri = "kbs:///default/test/file"
[image]
# The maximum number of layers downloaded concurrently when
# pulling one specific image.
#
# This defaults to 3.
max_concurrent_layer_downloads_per_image = 3
# Sigstore config file URI for simple signing scheme.
#
# When `image_security_policy_uri` is set and `SimpleSigning` (signedBy) is
# used in the policy, the signatures of the images would be used for image
# signature validation. This policy will record where the signatures is.
#
# Now it supports two different forms:
# - `KBS URI`: the sigstore config file will be fetched from KBS,
# e.g. `kbs:///default/sigstore-config/test`.
# - `Local Path`: the sigstore config file will be fetched from somewhere locally,
# e.g. `file:///etc/simple-signing.yaml`.
#
# By default this value is not set.
sigstore_config_uri = "kbs:///default/sigstore-config/test"
# If any image security policy would be used to control the image pulling
# like signature verification, this field is used to set the URI of the
# policy file.
#
# Now it supports two different forms:
# - `KBS URI`: the iamge security policy will be fetched from KBS.
# - `Local Path`: the security policy will be fetched from somewhere locally.
# e.g. `file:///etc/image-policy.json`.
#
# The policy follows the format of
# <https://github.com/containers/image/blob/main/docs/containers-policy.json.5.md>.
#
# At the same time, some enhencements based on CoCo is used, that is the
# `keyPath` field can be filled with a KBS URI like `kbs:///default/key/1`
#
# By default this value is not set.
image_security_policy_uri = "kbs:///default/security-policy/test"
# If any credential auth (Base) would be used to connect to download
# image from private registry, this field is used to set the URI of the
# credential file.
#
# Now it supports two different forms:
# - `KBS URI`: the registry auth will be fetched from KBS,
# e.g. `kbs:///default/credential/test`.
# - `Local Path`: the registry auth will be fetched from somewhere locally,
# e.g. `file:///etc/image-registry-auth.json`.
#
# By default this value is not set.
authenticated_registry_credentials_uri = "kbs:///default/credential/test"
# Proxy that will be used to pull image
#
# By default this value is not set.
image_pull_proxy = "http://127.0.0.1:5432"
# No proxy env that will be used to pull image.
#
# This will ensure that when we access the image registry with specified
# IPs, the `image_pull_proxy` will not be used.
#
# If `image_pull_proxy` is not set, this field will do nothing.
#
# By default this value is not set.
skip_proxy_ips = "192.168.0.1,localhost"
# To support registries with self signed certs. This config item
# is used to add extra trusted root certifications. The certificates
# must be encoded by PEM.
#
# By default this value is not set.
extra_root_certificates = [
"""
-----BEGIN CERTIFICATE-----
MIIFTDCCAvugAwIBAgIBADBGBgkqhkiG9w0BAQowOaAPMA0GCWCGSAFlAwQCAgUA
oRwwGgYJKoZIhvcNAQEIMA0GCWCGSAFlAwQCAgUAogMCATCjAwIBATB7MRQwEgYD
VQQLDAtFbmdpbmVlcmluZzELMAkGA1UEBhMCVVMxFDASBgNVBAcMC1NhbnRhIENs
YXJhMQswCQYDVQQIDAJDQTEfMB0GA1UECgwWQWR2YW5jZWQgTWljcm8gRGV2aWNl
czESMBAGA1UEAwwJU0VWLU1pbGFuMB4XDTIzMDEyNDE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YiJoL4LeGdXZ3gMOVDR1OnDos5lOBcV+quJ6JujpgH
d9g3Sa7Du7pusD9Fdap98ocZslRfFjFi//2YdVM4MKbq6IwpYNB+2PCEKNC7SfbO
NgZYJuPZnM/wViES/cP7MZNJ1KUKBI9yh6TmlSsZZOclGJvrOsBZimTXpATjdNMt
cluKwqAUUzYQmU7bf2TMdOXyA9iH5wIpj1kWGE1VuFADTKILkTc6LzLzOWCofLxf
onhTtSDtzIv/uel547GZqq+rVRvmIieEuEvDETwuookfV6qu3D/9KuSr9xiznmEg
xynud/f525jppJMcD/ofbQxUZuGKvb3f3zy+aLxqidoX7gca2Xd9jyUy5Y/83+ZN
bz4PZx81UJzXVI9ABEh8/xilATh1ZxOePTBJjN7lgr0lXtKYjV/43yyxgUYrXNZS
oLSG2dLCK9mjjraPjau34Q==
-----END CERTIFICATE-----
"""
]
# The path to store the pulled image layer data.
#
# This value defaults to `/run/image-rs/`.
work_dir = "/run/image-rs"