blob: 09e21983b932826c97b56c6a3f48c865a4566cfa [file] [log] [blame]
Mohammed Naserf3f59a72023-01-15 21:02:04 -05001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10# See the License for the specific language governing permissions and
11# limitations under the License.
12
13# Default values for barbican.
14# This is a YAML-formatted file.
15# Declare name/value pairs to be passed into your templates.
16# name: value
17
18---
19labels:
20 api:
21 node_selector_key: openstack-control-plane
22 node_selector_value: enabled
23 job:
24 node_selector_key: openstack-control-plane
25 node_selector_value: enabled
26 test:
27 node_selector_key: openstack-control-plane
28 node_selector_value: enabled
29
30release_group: null
31
32# NOTE(philsphicas): the pre-install hook breaks upgrade for helm2
33# Set to false to upgrade using helm2
34helm3_hook: true
35
36images:
37 tags:
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +010038 bootstrap: docker.io/openstackhelm/heat:wallaby-ubuntu_focal
Mohammed Naserf3f59a72023-01-15 21:02:04 -050039 dep_check: quay.io/airshipit/kubernetes-entrypoint:v1.0.0
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +010040 scripted_test: docker.io/openstackhelm/heat:wallaby-ubuntu_focal
41 db_init: docker.io/openstackhelm/heat:wallaby-ubuntu_focal
42 barbican_db_sync: docker.io/openstackhelm/barbican:wallaby-ubuntu_focal
43 db_drop: docker.io/openstackhelm/heat:wallaby-ubuntu_focal
44 ks_user: docker.io/openstackhelm/heat:wallaby-ubuntu_focal
45 ks_service: docker.io/openstackhelm/heat:wallaby-ubuntu_focal
46 ks_endpoints: docker.io/openstackhelm/heat:wallaby-ubuntu_focal
47 barbican_api: docker.io/openstackhelm/barbican:wallaby-ubuntu_focal
Mohammed Naserf3f59a72023-01-15 21:02:04 -050048 rabbit_init: docker.io/rabbitmq:3.7-management
49 image_repo_sync: docker.io/docker:17.07.0
50 pull_policy: "IfNotPresent"
51 local_registry:
52 active: false
53 exclude:
54 - dep_check
55 - image_repo_sync
56
57pod:
58 security_context:
59 barbican:
60 pod:
61 runAsUser: 42424
62 container:
63 barbican_api:
64 allowPrivilegeEscalation: false
65 readOnlyRootFilesystem: true
66 test:
67 pod:
68 runAsUser: 42424
69 container:
70 barbican_test:
71 allowPrivilegeEscalation: false
72 readOnlyRootFilesystem: true
73 affinity:
74 anti:
75 type:
76 default: preferredDuringSchedulingIgnoredDuringExecution
77 topologyKey:
78 default: kubernetes.io/hostname
79 weight:
80 default: 10
81 tolerations:
82 barbican:
83 enabled: false
84 tolerations:
85 - key: node-role.kubernetes.io/master
86 operator: Exists
87 effect: NoSchedule
Oleksandr Kozachenkoc0022be2023-05-23 20:36:21 +020088 - key: node-role.kubernetes.io/control-plane
89 operator: Exists
90 effect: NoSchedule
Mohammed Naserf3f59a72023-01-15 21:02:04 -050091 mounts:
92 barbican_api:
93 init_container: null
94 barbican_api:
95 volumeMounts:
96 volumes:
97 barbican_bootstrap:
98 init_container: null
99 barbican_bootstrap:
100 volumeMounts:
101 volumes:
102 barbican_tests:
103 init_container: null
104 barbican_tests:
105 volumeMounts:
106 volumes:
107 barbican_db_sync:
108 barbican_db_sync:
109 volumeMounts:
110 volumes:
111 replicas:
112 api: 1
113 lifecycle:
114 upgrades:
115 deployments:
116 revision_history: 3
117 pod_replacement_strategy: RollingUpdate
118 rolling_update:
119 max_unavailable: 1
120 max_surge: 3
121 disruption_budget:
122 api:
123 min_available: 0
124 resources:
125 enabled: false
126 api:
127 requests:
128 memory: "128Mi"
129 cpu: "100m"
130 limits:
131 memory: "1024Mi"
132 cpu: "2000m"
133 jobs:
134 bootstrap:
135 requests:
136 memory: "128Mi"
137 cpu: "100m"
138 limits:
139 memory: "1024Mi"
140 cpu: "2000m"
141 db_init:
142 requests:
143 memory: "128Mi"
144 cpu: "100m"
145 limits:
146 memory: "1024Mi"
147 cpu: "2000m"
148 db_sync:
149 requests:
150 memory: "128Mi"
151 cpu: "100m"
152 limits:
153 memory: "1024Mi"
154 cpu: "2000m"
155 db_drop:
156 requests:
157 memory: "128Mi"
158 cpu: "100m"
159 limits:
160 memory: "1024Mi"
161 cpu: "2000m"
162 rabbit_init:
163 requests:
164 memory: "128Mi"
165 cpu: "100m"
166 limits:
167 memory: "1024Mi"
168 cpu: "2000m"
169 ks_endpoints:
170 requests:
171 memory: "128Mi"
172 cpu: "100m"
173 limits:
174 memory: "1024Mi"
175 cpu: "2000m"
176 ks_service:
177 requests:
178 memory: "128Mi"
179 cpu: "100m"
180 limits:
181 memory: "1024Mi"
182 cpu: "2000m"
183 ks_user:
184 requests:
185 memory: "128Mi"
186 cpu: "100m"
187 limits:
188 memory: "1024Mi"
189 cpu: "2000m"
190 tests:
191 requests:
192 memory: "128Mi"
193 cpu: "100m"
194 limits:
195 memory: "1024Mi"
196 cpu: "2000m"
197 image_repo_sync:
198 requests:
199 memory: "128Mi"
200 cpu: "100m"
201 limits:
202 memory: "1024Mi"
203 cpu: "2000m"
204
205network:
206 api:
207 ingress:
208 public: true
209 classes:
210 namespace: "nginx"
211 cluster: "nginx-cluster"
212 annotations:
213 nginx.ingress.kubernetes.io/rewrite-target: /
214 external_policy_local: false
215 node_port:
216 enabled: false
217 port: 30486
218
219network_policy:
220 barbican:
221 ingress:
222 - {}
223 egress:
224 - {}
225
226bootstrap:
227 enabled: false
228 ks_user: barbican
229 script: |
230 openstack token issue
231
232dependencies:
233 dynamic:
234 common:
235 local_image_registry:
236 jobs:
237 - barbican-image-repo-sync
238 services:
239 - endpoint: node
240 service: local_image_registry
241 static:
242 api:
243 jobs:
244 - barbican-db-sync
245 - barbican-ks-user
246 - barbican-ks-endpoints
247 - barbican-rabbit-init
248 services:
249 - endpoint: internal
250 service: oslo_db
251 - endpoint: internal
252 service: identity
253 - endpoint: internal
254 service: oslo_messaging
255 db_drop:
256 services:
257 - endpoint: internal
258 service: oslo_db
259 db_init:
260 services:
261 - endpoint: internal
262 service: oslo_db
263 db_sync:
264 jobs:
265 - barbican-db-init
266 services:
267 - endpoint: internal
268 service: oslo_db
269 image_repo_sync:
270 services:
271 - endpoint: internal
272 service: local_image_registry
273 ks_endpoints:
274 jobs:
275 - barbican-ks-service
276 services:
277 - endpoint: internal
278 service: identity
279 ks_service:
280 services:
281 - endpoint: internal
282 service: identity
283 ks_user:
284 services:
285 - endpoint: internal
286 service: identity
287 rabbit_init:
288 services:
289 - endpoint: internal
290 service: oslo_messaging
291
292conf:
okozachenko12035aa48492023-09-05 19:47:07 +1000293 paste:
294 composite:main:
295 use: egg:Paste#urlmap
296 /: barbican_version
297 /v1: barbican-api-keystone
298 pipeline:barbican_version:
299 pipeline: cors http_proxy_to_wsgi versionapp
300 pipeline:barbican_api:
301 pipeline: cors http_proxy_to_wsgi unauthenticated-context apiapp
302 pipeline:barbican-profile:
303 pipeline: cors http_proxy_to_wsgi unauthenticated-context egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp
304 pipeline:barbican-api-keystone:
305 pipeline: cors http_proxy_to_wsgi authtoken context apiapp
306 pipeline:barbican-api-keystone-audit:
307 pipeline: http_proxy_to_wsgi authtoken context audit apiapp
308 app:apiapp:
309 paste.app_factory: barbican.api.app:create_main_app
310 app:versionapp:
311 paste.app_factory: barbican.api.app:create_version_app
312 filter:simple:
313 paste.filter_factory: barbican.api.middleware.simple:SimpleFilter.factory
314 filter:unauthenticated-context:
315 paste.filter_factory: barbican.api.middleware.context:UnauthenticatedContextMiddleware.factory
316 filter:context:
317 paste.filter_factory: barbican.api.middleware.context:ContextMiddleware.factory
318 filter:audit:
319 paste.filter_factory: keystonemiddleware.audit:filter_factory
320 audit_map_file: /etc/barbican/api_audit_map.conf
321 filter:authtoken:
322 paste.filter_factory: keystonemiddleware.auth_token:filter_factory
323 filter:profile:
324 use: egg:repoze.profile
325 log_filename: myapp.profile
326 cachegrind_filename: cachegrind.out.myapp
327 discard_first_request: true
328 path: /__profile__
329 flush_at_shutdown: true
330 unwind: false
331 filter:cors:
332 paste.filter_factory: oslo_middleware.cors:filter_factory
333 oslo_config_project: barbican
334 filter:http_proxy_to_wsgi:
335 paste.filter_factory: oslo_middleware:HTTPProxyToWSGI.factory
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500336 policy: {}
337 audit_map:
338 DEFAULT:
339 # default target endpoint type
340 # should match the endpoint type defined in service catalog
341 target_endpoint_type: key-manager
342 custom_actions:
343 # map urls ending with specific text to a unique action
344 # Don't need custom mapping for other resource operations
345 # Note: action should match action names defined in CADF taxonomy
346 acl/get: read
347 path_keywords:
348 # path of api requests for CADF target typeURI
349 # Just need to include top resource path to identify class of resources
350 secrets: null
351 containers: null
352 orders: null
353 cas: "None"
354 quotas: null
355 project-quotas: null
356 service_endpoints:
357 # map endpoint type defined in service catalog to CADF typeURI
358 key-manager: service/security/keymanager
359 barbican_api:
360 uwsgi:
361 socket: null
362 protocol: http
363 processes: 1
364 lazy: true
365 vacuum: true
366 no-default-app: true
367 memory-report: true
368 plugins: python
369 paste: "config:/etc/barbican/barbican-api-paste.ini"
370 add-header: "Connection: close"
371 barbican:
372 DEFAULT:
373 transport_url: null
374 log_config_append: /etc/barbican/logging.conf
375 keystone_authtoken:
376 auth_type: password
377 auth_version: v3
378 memcache_security_strategy: ENCRYPT
379 memcache_secret_key: null
Oleksandr Kozachenkoc0022be2023-05-23 20:36:21 +0200380 service_type: key-manager
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500381 database:
382 max_retries: -1
383 barbican_api:
384 # NOTE(portdirect): the bind port should not be defined, and is manipulated
385 # via the endpoints section.
386 bind_port: null
387 oslo_policy:
388 policy_file: /etc/barbican/policy.yaml
389 # When using the simple_crypto_plugin, a kek must be provided as:
390 # .conf.barbican.simple_crypto_plugin.kek
391 # If no kek is provided, barbican will use a well-known default.
392 # If upgrading the chart with a new kek, the old kek must be provided as:
393 # .conf.simple_crypto_plugin_rewrap.old_kek
394 # Please refer to the .conf.simple_crypto_key_rewrap section below.
395 # The barbican defaults are included here as a reference:
396 # secretstore:
397 # enabled_secretstore_plugins:
398 # - store_crypto
399 # crypto:
400 # enabled_crypto_plugins:
401 # - simple_crypto
402 # simple_crypto_plugin:
403 # # The kek should be a 32-byte value which is base64 encoded.
404 # kek: "dGhpcnR5X3R3b19ieXRlX2tleWJsYWhibGFoYmxhaGg="
405 # KEK rotation for the simple_crypto plugin
406 simple_crypto_kek_rewrap:
407
408 # To allow for chart upgrades when modifying the Key Encryption Key, the
409 # db-sync job can rewrap the existing project keys with the new kek, leaving
410 # each secret’s encrypted data unchanged.
411
412 # This feature is enabled automatically, if a kek is specified at:
413 # .conf.barbican.simple_crypto_plugin.kek
414 # and the previous kek is also specified at:
415 # .conf.simple_crypto_kek_rewrap.old_kek
416
417 # The project keys are decrypted with 'old_kek' and re-encrypted with the
418 # target kek (as defined in barbican.conf).
419 # This resembles the lightweight rotation described here, which was never
420 # implemented for the simple crypto plugin:
421 # https://specs.openstack.org/openstack/barbican-specs/specs/liberty/add-crypto-mkek-rotation-support-lightweight.html
422
423 # The KEK value "dGhpcnR5X3R3b19ieXRlX2tleWJsYWhibGFoYmxhaGg=" matches the
424 # plugin default, and is retained here for convenience, in case the chart was
425 # previously installed without explicitly specifying a kek.
426 old_kek: "dGhpcnR5X3R3b19ieXRlX2tleWJsYWhibGFoYmxhaGg="
427 logging:
428 loggers:
429 keys:
430 - root
431 - barbican
432 handlers:
433 keys:
434 - stdout
435 - stderr
436 - "null"
437 formatters:
438 keys:
439 - context
440 - default
441 logger_root:
442 level: WARNING
443 handlers: 'null'
444 logger_barbican:
445 level: INFO
446 handlers:
447 - stdout
448 qualname: barbican
449 logger_amqp:
450 level: WARNING
451 handlers: stderr
452 qualname: amqp
453 logger_amqplib:
454 level: WARNING
455 handlers: stderr
456 qualname: amqplib
457 logger_eventletwsgi:
458 level: WARNING
459 handlers: stderr
460 qualname: eventlet.wsgi.server
461 logger_sqlalchemy:
462 level: WARNING
463 handlers: stderr
464 qualname: sqlalchemy
465 logger_boto:
466 level: WARNING
467 handlers: stderr
468 qualname: boto
469 handler_null:
470 class: logging.NullHandler
471 formatter: default
472 args: ()
473 handler_stdout:
474 class: StreamHandler
475 args: (sys.stdout,)
476 formatter: context
477 handler_stderr:
478 class: StreamHandler
479 args: (sys.stderr,)
480 formatter: context
481 formatter_context:
482 class: oslo_log.formatters.ContextFormatter
483 datefmt: "%Y-%m-%d %H:%M:%S"
484 formatter_default:
485 format: "%(message)s"
486 datefmt: "%Y-%m-%d %H:%M:%S"
487
488# Names of secrets used by bootstrap and environmental checks
489secrets:
490 identity:
491 admin: barbican-keystone-admin
492 barbican: barbican-keystone-user
493 oslo_db:
494 admin: barbican-db-admin
495 barbican: barbican-db-user
496 oslo_messaging:
497 admin: barbican-rabbitmq-admin
498 barbican: barbican-rabbitmq-user
499 tls:
500 key_manager:
501 api:
502 public: barbican-tls-public
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100503 internal: barbican-tls-internal
504 oci_image_registry:
505 barbican: barbican-oci-image-registry
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500506
507endpoints:
508 cluster_domain_suffix: cluster.local
509 local_image_registry:
510 name: docker-registry
511 namespace: docker-registry
512 hosts:
513 default: localhost
514 internal: docker-registry
515 node: localhost
516 host_fqdn_override:
517 default: null
518 port:
519 registry:
520 node: 5000
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100521 oci_image_registry:
522 name: oci-image-registry
523 namespace: oci-image-registry
524 auth:
525 enabled: false
526 barbican:
527 username: barbican
528 password: password
529 hosts:
530 default: localhost
531 host_fqdn_override:
532 default: null
533 port:
534 registry:
535 default: null
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500536 identity:
537 name: keystone
538 auth:
539 admin:
540 region_name: RegionOne
541 username: admin
542 password: password
543 project_name: admin
544 user_domain_name: default
545 project_domain_name: default
546 barbican:
547 role: admin
548 region_name: RegionOne
549 username: barbican
550 password: password
551 project_name: service
552 user_domain_name: service
553 project_domain_name: service
554 hosts:
555 default: keystone
556 internal: keystone-api
557 host_fqdn_override:
558 default: null
559 path:
560 default: /v3
561 scheme:
562 default: http
563 port:
564 api:
565 default: 80
566 internal: 5000
567 key_manager:
568 name: barbican
569 hosts:
570 default: barbican-api
571 public: barbican
572 host_fqdn_override:
573 default: null
574 path:
575 default: /
576 scheme:
577 default: http
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100578 service: http
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500579 port:
580 api:
581 default: 9311
582 public: 80
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100583 service: 9311
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500584 oslo_db:
585 auth:
586 admin:
587 username: root
588 password: password
589 secret:
590 tls:
591 internal: mariadb-tls-direct
592 barbican:
593 username: barbican
594 password: password
595 hosts:
596 default: mariadb
597 host_fqdn_override:
598 default: null
599 path: /barbican
600 scheme: mysql+pymysql
601 port:
602 mysql:
603 default: 3306
604 oslo_messaging:
605 auth:
606 admin:
607 username: rabbitmq
608 password: password
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100609 secret:
610 tls:
611 internal: rabbitmq-tls-direct
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500612 barbican:
613 username: barbican
614 password: password
615 statefulset:
616 replicas: 2
617 name: rabbitmq-rabbitmq
618 hosts:
619 default: rabbitmq
620 host_fqdn_override:
621 default: null
622 path: /barbican
623 scheme: rabbit
624 port:
625 amqp:
626 default: 5672
627 http:
628 default: 15672
629 oslo_cache:
630 auth:
631 # NOTE(portdirect): this is used to define the value for keystone
632 # authtoken cache encryption key, if not set it will be populated
633 # automatically with a random value, but to take advantage of
634 # this feature all services should be set to use the same key,
635 # and memcache service.
636 memcache_secret_key: null
637 hosts:
638 default: memcached
639 host_fqdn_override:
640 default: null
641 port:
642 memcache:
643 default: 11211
644 fluentd:
645 namespace: null
646 name: fluentd
647 hosts:
648 default: fluentd-logging
649 host_fqdn_override:
650 default: null
651 path:
652 default: null
653 scheme: 'http'
654 port:
655 service:
656 default: 24224
657 metrics:
658 default: 24220
659 # NOTE(tp6510): these endpoints allow for things like DNS lookups and ingress
660 # They are using to enable the Egress K8s network policy.
661 kube_dns:
662 namespace: kube-system
663 name: kubernetes-dns
664 hosts:
665 default: kube-dns
666 host_fqdn_override:
667 default: null
668 path:
669 default: null
670 scheme: http
671 port:
672 dns:
673 default: 53
674 protocol: UDP
675 ingress:
676 namespace: null
677 name: ingress
678 hosts:
679 default: ingress
680 port:
681 ingress:
682 default: 80
683
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100684tls:
685 identity: false
686 oslo_messaging: false
687 oslo_db: false
688
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500689manifests:
690 certificates: false
691 configmap_bin: true
692 configmap_etc: true
693 deployment_api: true
694 ingress_api: true
695 job_bootstrap: true
696 job_db_init: true
697 job_db_sync: true
698 job_db_drop: false
699 job_image_repo_sync: true
700 job_rabbit_init: true
701 job_ks_endpoints: true
702 job_ks_service: true
703 job_ks_user: true
704 pdb_api: true
705 pod_test: true
706 secret_db: true
707 network_policy: false
708 secret_ingress_tls: true
709 secret_keystone: true
710 secret_rabbitmq: true
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100711 secret_registry: true
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500712 service_ingress_api: true
713 service_api: true
714...