Debian Codegraph @

doc/relic.yml

raw symbols SCIP
1 ---
2 # Tokens on which signing keys can be found. Each configured key refers to a token by name.
3 tokens:
4
5 # Use a PKCS#11 library as a token
6 mytoken:
7 # Full path to provider library
8 provider: /usr/lib64/softhsm/libsofthsm.so
9
10 # Optional selectors to pick a token from those the provider offers
11 label: alpha
12 serial: 99999
13
14 # PIN is optional for command-line use, but required for servers. See also 'pinfile'.
15 pin: 123456
16 #pin: "" # blank PIN, without prompting
17
18 # If true, try to save the PIN in the system keyring (command-line only)
19 #usekeyring: false
20
21 # Optional login user. Useful values:
22 # 0 - CKU_SO
23 # 1 - CKU_USER (default)
24 # 2 - CKU_CONTEXT_SPECIFIC, SafeNet: CKU_AUDIT
25 # 0x80000001 - SafeNet: CKU_LIMITED_USER
26 #user: 1
27
28 # Optional parameters for server mode
29 #timeout: 60 # Terminate each attempt after N seconds (default: 60)
30 #retries: 5 # Retry failed commands N times (default: 5)
31 #ratelimit: 10 # Limit token operations per second
32 #rateburst: 10 # Allow burst of requests before limit kicks in
33
34 # Use GnuPG scdaemon as a token
35 myscd:
36 type: scdaemon
37 # Optionally specify the scdaemon socket path. If not provided then the
38 # default will be used.
39 provider: /run/myscd/S.scdaemon
40
41 # Optional serial number of the expected card.
42 serial: D99999999999999999999
43
44 # PIN is optional for command-line use, but required for servers. See also 'pinfile'.
45 pin: 123456
46
47 # Use private key files as a "token". The path to the key is specified in the key section(s)
48 file:
49 type: file
50 # If the private key is protected with a password, specify it here
51 pin: password
52
53 # Use keys stored in Google Cloud Key Management Service
54 gcloud:
55 type: gcloud
56 # Optionally configure a credential file. If not specified then the default
57 # environment is used.
58 #pin: service-account.json
59
60 # Use keys stored in Azure Key Vault
61 azurekv:
62 type: azure
63 # Optionally configure a service principal file
64 #pin: service-principal.auth
65 # Or use CLI authentication
66 #pin: ""
67 # Otherwise the environment will be used
68
69 # Use CMKs stored in AWS Key Management Service
70 aws:
71 type: aws
72 # Presently, configuration must be done via the standard SDK env vars
73
74 # Keys that can be used for signing
75 keys:
76
77 my_token_key:
78 # Which token, defined above, to find the key on
79 token: mytoken
80
81 # Optional selectors to pick a key from those in the token
82 # CKA_LABEL:
83 label: "label"
84 # CKA_ID:
85 id: 00112233
86
87 # Path to a PGP certificate, if PGP signing is desired. Can be ascii-armored or binary.
88 pgpcertificate: ./keys/rsa1.pub
89
90 # Path to a X509 certificate, if X509 signing is desired. Can be PEM, DER,
91 # or PKCS#7 (p7b) format, with optional certificate chain.
92 x509certificate: ./keys/rsa1.cer
93
94 # true if a RFC 3161 timestamp should be attached, see 'timestamp' below
95 timestamp: false
96
97 # Clients with any of these roles can utilize this key
98 roles: ['somegroup']
99
100 my_scd_key:
101 token: myscd
102 # Specify which key to use. For OpenPGP cards this will be either OPENPGP.1 or OPENPGP.3.
103 id: OPENPGP.1
104 # Same options as above: pgpcertificate, x509certificate, timestamp, roles
105
106 my_file_key:
107 token: file
108 # Path to the private key file. The password is specified in the token configuration above.
109 keyfile: ./keys/rsa1.key
110 # true if key file contains PKCS#12 key and certificate chain
111 ispkcs12: false
112 # Same options as above: pgpcertificate, x509certificate, timestamp, roles
113
114 my_gcloud_key:
115 token: gcloud
116 # Fully-qualified name of a key version resource. Must point to a key version, not a key.
117 id: projects/root-opus-123456/locations/us-east1/keyRings/my-keyring/cryptoKeys/my-gloud-key/cryptoKeyVersions/1
118 # Same options as above: pgpcertificate, x509certificate, timestamp, roles
119
120 my_azure_key:
121 token: azurekv
122 # URL of key version resource. Must point to a key version, not a key.
123 id: https://example.vault.azure.net/keys/my-azure-key/00112233445566778899aabbccddeeff
124 # Alternately, point to a certificate or certificate version. In this case
125 # x509certificate may be omitted to load the cert from key vault as well.
126 #id: https://example.vault.azure.net/certificates/my-azure-key
127 # Same options as above: pgpcertificate, x509certificate, timestamp, roles
128
129 my_aws_key:
130 token: aws
131 # ID or ARN of an asymmetric CMK
132 id: arn:aws:kms:us-east-1:111111111111:key/22222222-3333-4444-5555-666666666666
133 # Same options as above: pgpcertificate, x509certificate, timestamp, roles
134
135 aliased_key:
136 # When alias is set, this key name becomes an alias for the other key.
137 # Alises cannot override any parameters of the key, including roles.
138 alias: my_token_key
139
140 # Server-specific configuration
141 server:
142 # What port to listen on. Defaults to :6300.
143 # Socket activation via systemd is also supported, in which case this is ignored.
144 listen: ":6300"
145
146 # Listen for non-secure connections. This is useful for health checks and/or
147 # if clients connect via a trusted reverse proxy. Default is none.
148 listenhttp: ":6301"
149
150 # Private key for server TLS. PEM format, RSA or ECDSA
151 keyfile: /etc/relic/server/server.key
152
153 # X.509 certificate for server TLS. PEM format. If a cert chain is needed it
154 # should follow the main cert.
155 certfile: /etc/relic/server/server.key
156
157 # Optional logfile for server errors. If not set, then standard error is used
158 logfile: /var/log/relic/server.log
159
160 # How many worker subprocesses to spawn per token. Usually only 1 is required.
161 #numworkers: 1
162
163 # Set the frequency and tolerance of token health checks
164 #tokencheckinterval: 60 # ping the token every N seconds
165 #tokenchecktimeout: 30 # fail a ping if it is stuck for N seconds
166 #tokencheckfailures: 3 # the server will report "not healthy" after N failed pings
167 #tokencacheseconds: 600 # cache key/cert info from token
168
169 # Optional list of URLs that are part of a cluster of servers. If set clients
170 # will connect directly to one of these servers at random, otherwise they
171 # will connect to their originally configured URL.
172 #siblings:
173 #- https://relic1:6300
174 #- https://relic2:6300
175
176 # Optionally utilize Open Policy Agent to authenticate and authorize requests
177 # instead of the builtin client certificate verification.
178 # See [opa.md](./opa.md) for details.
179 #policyurl: http://127.0.0.1:8181/v1/data/relic
180
181 # If policyurl is set, optionally specify an Azure AD tenant which will be
182 # provided to clients that wish to perform interactive token authentication.
183 #azuread:
184 # authority: https://login.microsoftonline.com/00000000-1111-2222-3333-444444444444
185 # clientid: 55555555-6666-7777-8888-999999999999
186
187 # If fronted by a trusted reverse proxy, list the IP(s) and IP network(s) of
188 # the proxy here. The X-Forwarded-{For,Proto,Host} and Ssl-Client-Certificate
189 # headers will be respected when connections come from one of these IPs.
190 #trustedproxies:
191 #- 127.0.0.1
192 #- 10.0.0.0/30
193
194 # Instead of including token PINs in this file, you can specify an alternate
195 # "pin file" which is a YAML file holding key-value pairs where the key is the
196 # name of the token and the value is the PIN.
197 #pinfile: /etc/relic/pin.yaml
198
199 # Configure trusted timestamping servers, used by keys that have timestamping
200 # enabled when using a signature type that supports it.
201 timestamp:
202 # RFC 3161 timestamp server(s). If more than one is provided then they will
203 # be tried in the order given until one succeeds.
204 urls:
205 - http://mytimestamp.server/rfc3161
206
207 # Non-RFC3161 timestamp server(s), used for appmanifest only
208 msurls:
209 - http://mytimestamp.server
210
211 # Optional timeout for each timestamp request
212 timeout: 60
213
214 # Optional alternate CA certificate file for contacting timestamp servers
215 # cacert: /etc/pki/tls/mychain.pem
216
217 # Optional memcache servers for memoizing timestamp requests
218 #memcache:
219 # - 127.0.0.1:11211
220
221 # Optional rate limit for timestamp requests
222 #ratelimit: 1 # requests per second
223 #rateburst: 10 # burst capacity
224
225 # AMQP broker used to submit audit logs
226 amqp:
227 # Optional audit logging to an AMQP broker
228 #url: amqp://guest:[email protected]:5672
229
230 # Optional TLS parameters
231 #cacert:
232 #keyfile:
233 #certfile:
234
235 # "fanout" type exchange to send audit messages to, default relic.signatures
236 #sigsXchg: relic.signatures
237
238 # Authentication to the server is via client certificate. Certificates are
239 # identified by their fingerprint. Fingerprints can be obtained by using the
240 # "relic remote register" command on the client to generate the key, or by
241 # checking the server error log after attempting to connect.
242 clients:
243 E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855:
244 # Display name for this client
245 nickname: myuser
246 # List of roles this user possesses. Must contain at least one of the roles
247 # on a key for the user to access that key.
248 roles: ['somegroup']
249
250 # Alternately, clients can be authenticated using one or more CA
251 # certificates. The CA that the client matches determines the roles they have
252 # access to, and the subject DN of the leaf certificate is logged. This can
253 # be used to delegate access to a short-lived build process.
254 #my_root_ca:
255 # nickname: my_root_ca
256 # certificate: |
257 # -----BEGIN CERTIFICATE-----
258 # asdfasdfasdf
259 # -----END CERTIFICATE-----
260 # roles: ['somegroup']