forked from Keyfactor/ejbca-community-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
259 lines (226 loc) · 7.81 KB
/
values.yaml
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# Default values for ejbca-community-helm.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
ejbca:
## only applicable for quick setup of ephemeral test environments
useEphemeralH2Database: true
useH2Persistence: false
#existingH2PersistenceClaim: "database-data-claim"
importExternalCas: false
#externalCasSecret: managementca-secret
## not recommended: applicable only when direct HTTP access to EJBCA is enabled
importAppserverKeystore: false
#appserverKeystoreSecret: keystore-secret
importAppserverTruststore: false
#appserverTruststoreSecret: truststore-secret
importEjbcaConfFiles: false
#ejbcaConfFilesSecret: ejbca-conf
#importConfigdumpStaged: false
#configdumpStagedSecret: configdump-staged-secret
#importConfigdumpInitialize: false
#configdumpInitializeSecret: configdump-initialize-secret
#superadminPasswordOverride: "foo123"
env:
# for ephemeral test environments and only applicable to CA node
TLS_SETUP_ENABLED: "simple"
# External RA, VA, or when you want to bootstrap a CA/superadmin credential to use
# TLS_SETUP_ENABLED: "later"
# database username and password are recommended to be input as secret
# DATABASE_JDBC_URL: ""
# Audit logging should only be enabled in CA node
LOG_AUDIT_TO_DB: false
# INFO, DEBUG, TRACE, ERROR
LOG_LEVEL_APP: "INFO"
LOG_LEVEL_SERVER: "INFO"
## Observability
# The IP address where port 8090 will listen for requests to /health, /health/ready,
# /health/live and /metrics . Set this to 0.0.0.0 to bind to all container interfaces.
OBSERVABLE_BIND: "127.0.0.1"
# Set this to "true" to collect metrics and expose them at the /metrics endpoint for scraping.
METRICS_ENABLED: false
## Global OCSP configurations
OCSP_CHECK_SIGN_CERT_VALIDITY: true
OCSP_NON_EXISTING_IS_GOOD: false
## SMTP configuration
# Specify the FQDN or IP Address of the SMTP host for EJBCA to send email notifications.
SMTP_DESTINATION: "localhost"
SMTP_DESTINATION_PORT: "25"
SMTP_FROM: no-reply@localhost
SMTP_TLS_ENABLED: true
# Used for Wildfly to connect using TLS to the SMTP server. This only supports public CA certificates.
SMTP_SSL_ENABLED: true
# The username used when authentication is required for SMTP server.
SMTP_USERNAME: ejbca-mail
#envRaw:
# - name: DATABASE_USER
# valueFrom:
# secretKeyRef:
# name: ejbcadbcredentials
# key: database_user
# - name: DATABASE_PASSWORD
# valueFrom:
# secretKeyRef:
# name: ejbcadbcredentials
# key: database_password
# - name: PASSWORD_ENCRYPTION_KEY
# valueFrom:
# secretKeyRef:
# name: ejbca-confidentiality-secrets
# key: password_encrpytion_key
# - name: EJBCA_CLI_DEFAULTPASSWORD
# valueFrom:
# secretKeyRef:
# name: ejbca-confidentiality-secrets
# key: cli_default_password
# - name: SMTP_PASSWORD
# valueFrom:
# secretKeyRef:
# name: ejbca-smtp-secrets
# key: smtp_password
# Extra init containers to be added to the deployment
initContainers: []
# Extra sidecar containers to be added to the deployment
sidecarContainers: []
# Extra volumes to be added to the deployment
volumes: []
# Extra volume mounts to be added to the deployment
volumeMounts: []
# Only one of the following services can be enabled at a time
services:
# not recommended, should only be used for debugging purpose
directHttp:
enabled: true
type: NodePort
httpPort: 30080
httpsPort: 30443
proxyAJP:
enabled: false
type: ClusterIP
bindIP: 0.0.0.0
port: 8009
# recommended, use with nginx or ingress for access
proxyHttp:
enabled: false
type: ClusterIP
bindIP: 0.0.0.0
httpPort: 8081
httpsPort: 8082
# Extra sidecar ports to be added to the service, optionally used when sidecarContainers
# are defined and need to expose ports
sidecarPorts: []
# Requires proxyHttp service to be enabled
nginx:
enabled: false
host: ""
service:
enabled: false
type: NodePort
httpPort: 30080
httpsPort: 30443
conf: |
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name {{ .Values.nginx.host }};
location / {
proxy_pass http://{{ include "ejbca-community-helm.fullname" . }}:8081;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_http_version 1.1;
}
}
server {
listen 443 ssl;
ssl_verify_client optional;
server_name {{ .Values.nginx.host }};
ssl_certificate /etc/nginx/ssl/pem/{{ .Values.nginx.host }}.pem;
ssl_certificate_key /etc/nginx/ssl/pem/{{ .Values.nginx.host }}-Key.pem;
ssl_client_certificate /etc/nginx/ssl/pem/{{ .Values.nginx.host }}-CA.pem;
location / {
proxy_pass http://{{ include "ejbca-community-helm.fullname" . }}:8082;
proxy_set_header SSL_CLIENT_CERT $ssl_client_cert;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_http_version 1.1;
}
}
}
# Requires proxyAJP or proxyHttp service to be enabled for adminweb access
ingress:
enabled: false
className: "nginx"
annotations:
## Do not redirect HTTP to HTTPS
nginx.ingress.kubernetes.io/ssl-redirect: "false"
## Enable optional client certificate authentication
nginx.ingress.kubernetes.io/auth-tls-verify-client: "optional_no_ca"
## Secret containing trusted CA certificates. Use with auth-tls-verify-client: "on" or "optional"
#nginx.ingress.kubernetes.io/auth-tls-secret: "default/managementca-secret"
## Pass client certificates to upstream server
nginx.ingress.kubernetes.io/auth-tls-pass-certificate-to-upstream: "true"
## Verification depth of the client certificates chain
#nginx.ingress.kubernetes.io/auth-tls-verify-depth: "1"
## Configure sticky sessions if using more than one replica
#nginx.ingress.kubernetes.io/affinity: "cookie"
#nginx.ingress.kubernetes.io/session-cookie-name: "ejbcaCOOKIE"
#nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
hosts: []
#- host: ""
# paths:
# - path: /ejbca
# pathType: Prefix
tls: []
replicaCount: 1
image:
repository: keyfactor/ejbca-ce
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion
#tag: latest
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
resources: {}
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}