blob: 17aee7231bfe87ad83829dfab3f8dceafb137e11 [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:
Dong Maedcbf102025-02-10 06:32:12 +000058 priorityClassName:
59 barbican_api: null
60 barbican_tests: null
61 db_sync: null
62 runtimeClassName:
63 barbican_api: null
64 barbican_tests: null
65 db_sync: null
Mohammed Naserf3f59a72023-01-15 21:02:04 -050066 security_context:
67 barbican:
68 pod:
69 runAsUser: 42424
70 container:
71 barbican_api:
72 allowPrivilegeEscalation: false
73 readOnlyRootFilesystem: true
74 test:
75 pod:
76 runAsUser: 42424
77 container:
78 barbican_test:
79 allowPrivilegeEscalation: false
80 readOnlyRootFilesystem: true
81 affinity:
82 anti:
83 type:
84 default: preferredDuringSchedulingIgnoredDuringExecution
85 topologyKey:
86 default: kubernetes.io/hostname
87 weight:
88 default: 10
89 tolerations:
90 barbican:
91 enabled: false
92 tolerations:
93 - key: node-role.kubernetes.io/master
94 operator: Exists
95 effect: NoSchedule
Oleksandr Kozachenkoc0022be2023-05-23 20:36:21 +020096 - key: node-role.kubernetes.io/control-plane
97 operator: Exists
98 effect: NoSchedule
Mohammed Naserf3f59a72023-01-15 21:02:04 -050099 mounts:
100 barbican_api:
101 init_container: null
102 barbican_api:
103 volumeMounts:
104 volumes:
105 barbican_bootstrap:
106 init_container: null
107 barbican_bootstrap:
108 volumeMounts:
109 volumes:
110 barbican_tests:
111 init_container: null
112 barbican_tests:
113 volumeMounts:
114 volumes:
115 barbican_db_sync:
116 barbican_db_sync:
117 volumeMounts:
118 volumes:
119 replicas:
120 api: 1
121 lifecycle:
122 upgrades:
123 deployments:
124 revision_history: 3
125 pod_replacement_strategy: RollingUpdate
126 rolling_update:
127 max_unavailable: 1
128 max_surge: 3
129 disruption_budget:
130 api:
131 min_available: 0
132 resources:
133 enabled: false
134 api:
135 requests:
136 memory: "128Mi"
137 cpu: "100m"
138 limits:
139 memory: "1024Mi"
140 cpu: "2000m"
141 jobs:
142 bootstrap:
143 requests:
144 memory: "128Mi"
145 cpu: "100m"
146 limits:
147 memory: "1024Mi"
148 cpu: "2000m"
149 db_init:
150 requests:
151 memory: "128Mi"
152 cpu: "100m"
153 limits:
154 memory: "1024Mi"
155 cpu: "2000m"
156 db_sync:
157 requests:
158 memory: "128Mi"
159 cpu: "100m"
160 limits:
161 memory: "1024Mi"
162 cpu: "2000m"
163 db_drop:
164 requests:
165 memory: "128Mi"
166 cpu: "100m"
167 limits:
168 memory: "1024Mi"
169 cpu: "2000m"
170 rabbit_init:
171 requests:
172 memory: "128Mi"
173 cpu: "100m"
174 limits:
175 memory: "1024Mi"
176 cpu: "2000m"
177 ks_endpoints:
178 requests:
179 memory: "128Mi"
180 cpu: "100m"
181 limits:
182 memory: "1024Mi"
183 cpu: "2000m"
184 ks_service:
185 requests:
186 memory: "128Mi"
187 cpu: "100m"
188 limits:
189 memory: "1024Mi"
190 cpu: "2000m"
191 ks_user:
192 requests:
193 memory: "128Mi"
194 cpu: "100m"
195 limits:
196 memory: "1024Mi"
197 cpu: "2000m"
198 tests:
199 requests:
200 memory: "128Mi"
201 cpu: "100m"
202 limits:
203 memory: "1024Mi"
204 cpu: "2000m"
205 image_repo_sync:
206 requests:
207 memory: "128Mi"
208 cpu: "100m"
209 limits:
210 memory: "1024Mi"
211 cpu: "2000m"
212
213network:
214 api:
215 ingress:
216 public: true
217 classes:
218 namespace: "nginx"
219 cluster: "nginx-cluster"
220 annotations:
221 nginx.ingress.kubernetes.io/rewrite-target: /
222 external_policy_local: false
223 node_port:
224 enabled: false
225 port: 30486
226
227network_policy:
228 barbican:
229 ingress:
230 - {}
231 egress:
232 - {}
233
234bootstrap:
235 enabled: false
236 ks_user: barbican
237 script: |
238 openstack token issue
239
240dependencies:
241 dynamic:
242 common:
243 local_image_registry:
244 jobs:
245 - barbican-image-repo-sync
246 services:
247 - endpoint: node
248 service: local_image_registry
249 static:
250 api:
251 jobs:
252 - barbican-db-sync
253 - barbican-ks-user
254 - barbican-ks-endpoints
255 - barbican-rabbit-init
256 services:
257 - endpoint: internal
258 service: oslo_db
259 - endpoint: internal
260 service: identity
261 - endpoint: internal
262 service: oslo_messaging
263 db_drop:
264 services:
265 - endpoint: internal
266 service: oslo_db
267 db_init:
268 services:
269 - endpoint: internal
270 service: oslo_db
271 db_sync:
272 jobs:
273 - barbican-db-init
274 services:
275 - endpoint: internal
276 service: oslo_db
277 image_repo_sync:
278 services:
279 - endpoint: internal
280 service: local_image_registry
281 ks_endpoints:
282 jobs:
283 - barbican-ks-service
284 services:
285 - endpoint: internal
286 service: identity
287 ks_service:
288 services:
289 - endpoint: internal
290 service: identity
291 ks_user:
292 services:
293 - endpoint: internal
294 service: identity
295 rabbit_init:
296 services:
297 - endpoint: internal
298 service: oslo_messaging
299
300conf:
okozachenko12035aa48492023-09-05 19:47:07 +1000301 paste:
302 composite:main:
303 use: egg:Paste#urlmap
304 /: barbican_version
305 /v1: barbican-api-keystone
306 pipeline:barbican_version:
307 pipeline: cors http_proxy_to_wsgi versionapp
308 pipeline:barbican_api:
309 pipeline: cors http_proxy_to_wsgi unauthenticated-context apiapp
310 pipeline:barbican-profile:
311 pipeline: cors http_proxy_to_wsgi unauthenticated-context egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp
312 pipeline:barbican-api-keystone:
313 pipeline: cors http_proxy_to_wsgi authtoken context apiapp
314 pipeline:barbican-api-keystone-audit:
315 pipeline: http_proxy_to_wsgi authtoken context audit apiapp
316 app:apiapp:
317 paste.app_factory: barbican.api.app:create_main_app
318 app:versionapp:
319 paste.app_factory: barbican.api.app:create_version_app
320 filter:simple:
321 paste.filter_factory: barbican.api.middleware.simple:SimpleFilter.factory
322 filter:unauthenticated-context:
323 paste.filter_factory: barbican.api.middleware.context:UnauthenticatedContextMiddleware.factory
324 filter:context:
325 paste.filter_factory: barbican.api.middleware.context:ContextMiddleware.factory
326 filter:audit:
327 paste.filter_factory: keystonemiddleware.audit:filter_factory
328 audit_map_file: /etc/barbican/api_audit_map.conf
329 filter:authtoken:
330 paste.filter_factory: keystonemiddleware.auth_token:filter_factory
331 filter:profile:
332 use: egg:repoze.profile
333 log_filename: myapp.profile
334 cachegrind_filename: cachegrind.out.myapp
335 discard_first_request: true
336 path: /__profile__
337 flush_at_shutdown: true
338 unwind: false
339 filter:cors:
340 paste.filter_factory: oslo_middleware.cors:filter_factory
341 oslo_config_project: barbican
342 filter:http_proxy_to_wsgi:
343 paste.filter_factory: oslo_middleware:HTTPProxyToWSGI.factory
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500344 policy: {}
345 audit_map:
346 DEFAULT:
347 # default target endpoint type
348 # should match the endpoint type defined in service catalog
349 target_endpoint_type: key-manager
350 custom_actions:
351 # map urls ending with specific text to a unique action
352 # Don't need custom mapping for other resource operations
353 # Note: action should match action names defined in CADF taxonomy
354 acl/get: read
355 path_keywords:
356 # path of api requests for CADF target typeURI
357 # Just need to include top resource path to identify class of resources
358 secrets: null
359 containers: null
360 orders: null
361 cas: "None"
362 quotas: null
363 project-quotas: null
364 service_endpoints:
365 # map endpoint type defined in service catalog to CADF typeURI
366 key-manager: service/security/keymanager
Rico Lin36e65de2024-04-22 00:08:06 +0800367 barbican_api_uwsgi:
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500368 uwsgi:
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500369 add-header: "Connection: close"
Rico Lin36e65de2024-04-22 00:08:06 +0800370 buffer-size: 65535
371 chunked-input-limit: "4096000"
372 die-on-term: true
373 enable-threads: true
374 exit-on-reload: false
375 hook-master-start: unix_signal:15 gracefully_kill_them_all
376 http-auto-chunked: true
377 http-raw-body: true
378 lazy-apps: true
379 log-x-forwarded-for: true
380 master: true
381 need-app: true
382 procname-prefix-spaced: "barbiacan-api:"
383 route-user-agent: '^kube-probe.* donotlog:'
384 socket-timeout: 10
385 thunder-lock: true
386 worker-reload-mercy: 80
387 wsgi-file: /var/lib/openstack/bin/barbican-wsgi-api
388 processes: 1
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500389 barbican:
390 DEFAULT:
391 transport_url: null
392 log_config_append: /etc/barbican/logging.conf
393 keystone_authtoken:
394 auth_type: password
395 auth_version: v3
396 memcache_security_strategy: ENCRYPT
397 memcache_secret_key: null
Oleksandr Kozachenkoc0022be2023-05-23 20:36:21 +0200398 service_type: key-manager
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500399 database:
400 max_retries: -1
401 barbican_api:
402 # NOTE(portdirect): the bind port should not be defined, and is manipulated
403 # via the endpoints section.
404 bind_port: null
405 oslo_policy:
406 policy_file: /etc/barbican/policy.yaml
407 # When using the simple_crypto_plugin, a kek must be provided as:
408 # .conf.barbican.simple_crypto_plugin.kek
409 # If no kek is provided, barbican will use a well-known default.
410 # If upgrading the chart with a new kek, the old kek must be provided as:
411 # .conf.simple_crypto_plugin_rewrap.old_kek
412 # Please refer to the .conf.simple_crypto_key_rewrap section below.
413 # The barbican defaults are included here as a reference:
414 # secretstore:
415 # enabled_secretstore_plugins:
416 # - store_crypto
417 # crypto:
418 # enabled_crypto_plugins:
419 # - simple_crypto
420 # simple_crypto_plugin:
421 # # The kek should be a 32-byte value which is base64 encoded.
422 # kek: "dGhpcnR5X3R3b19ieXRlX2tleWJsYWhibGFoYmxhaGg="
423 # KEK rotation for the simple_crypto plugin
424 simple_crypto_kek_rewrap:
425
426 # To allow for chart upgrades when modifying the Key Encryption Key, the
427 # db-sync job can rewrap the existing project keys with the new kek, leaving
428 # each secret’s encrypted data unchanged.
429
430 # This feature is enabled automatically, if a kek is specified at:
431 # .conf.barbican.simple_crypto_plugin.kek
432 # and the previous kek is also specified at:
433 # .conf.simple_crypto_kek_rewrap.old_kek
434
435 # The project keys are decrypted with 'old_kek' and re-encrypted with the
436 # target kek (as defined in barbican.conf).
437 # This resembles the lightweight rotation described here, which was never
438 # implemented for the simple crypto plugin:
439 # https://specs.openstack.org/openstack/barbican-specs/specs/liberty/add-crypto-mkek-rotation-support-lightweight.html
440
441 # The KEK value "dGhpcnR5X3R3b19ieXRlX2tleWJsYWhibGFoYmxhaGg=" matches the
442 # plugin default, and is retained here for convenience, in case the chart was
443 # previously installed without explicitly specifying a kek.
444 old_kek: "dGhpcnR5X3R3b19ieXRlX2tleWJsYWhibGFoYmxhaGg="
445 logging:
446 loggers:
447 keys:
448 - root
449 - barbican
450 handlers:
451 keys:
452 - stdout
453 - stderr
454 - "null"
455 formatters:
456 keys:
457 - context
458 - default
459 logger_root:
460 level: WARNING
461 handlers: 'null'
462 logger_barbican:
463 level: INFO
464 handlers:
465 - stdout
466 qualname: barbican
467 logger_amqp:
468 level: WARNING
469 handlers: stderr
470 qualname: amqp
471 logger_amqplib:
472 level: WARNING
473 handlers: stderr
474 qualname: amqplib
475 logger_eventletwsgi:
476 level: WARNING
477 handlers: stderr
478 qualname: eventlet.wsgi.server
479 logger_sqlalchemy:
480 level: WARNING
481 handlers: stderr
482 qualname: sqlalchemy
483 logger_boto:
484 level: WARNING
485 handlers: stderr
486 qualname: boto
487 handler_null:
488 class: logging.NullHandler
489 formatter: default
490 args: ()
491 handler_stdout:
492 class: StreamHandler
493 args: (sys.stdout,)
494 formatter: context
495 handler_stderr:
496 class: StreamHandler
497 args: (sys.stderr,)
498 formatter: context
499 formatter_context:
500 class: oslo_log.formatters.ContextFormatter
501 datefmt: "%Y-%m-%d %H:%M:%S"
502 formatter_default:
503 format: "%(message)s"
504 datefmt: "%Y-%m-%d %H:%M:%S"
505
506# Names of secrets used by bootstrap and environmental checks
507secrets:
508 identity:
509 admin: barbican-keystone-admin
510 barbican: barbican-keystone-user
511 oslo_db:
512 admin: barbican-db-admin
513 barbican: barbican-db-user
514 oslo_messaging:
515 admin: barbican-rabbitmq-admin
516 barbican: barbican-rabbitmq-user
517 tls:
518 key_manager:
519 api:
520 public: barbican-tls-public
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100521 internal: barbican-tls-internal
522 oci_image_registry:
523 barbican: barbican-oci-image-registry
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500524
525endpoints:
526 cluster_domain_suffix: cluster.local
527 local_image_registry:
528 name: docker-registry
529 namespace: docker-registry
530 hosts:
531 default: localhost
532 internal: docker-registry
533 node: localhost
534 host_fqdn_override:
535 default: null
536 port:
537 registry:
538 node: 5000
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100539 oci_image_registry:
540 name: oci-image-registry
541 namespace: oci-image-registry
542 auth:
543 enabled: false
544 barbican:
545 username: barbican
546 password: password
547 hosts:
548 default: localhost
549 host_fqdn_override:
550 default: null
551 port:
552 registry:
553 default: null
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500554 identity:
555 name: keystone
556 auth:
557 admin:
558 region_name: RegionOne
559 username: admin
560 password: password
561 project_name: admin
562 user_domain_name: default
563 project_domain_name: default
564 barbican:
565 role: admin
566 region_name: RegionOne
567 username: barbican
568 password: password
569 project_name: service
570 user_domain_name: service
571 project_domain_name: service
572 hosts:
573 default: keystone
574 internal: keystone-api
575 host_fqdn_override:
576 default: null
577 path:
578 default: /v3
579 scheme:
580 default: http
581 port:
582 api:
583 default: 80
584 internal: 5000
585 key_manager:
586 name: barbican
587 hosts:
588 default: barbican-api
589 public: barbican
590 host_fqdn_override:
Rico Linf19da962024-04-20 03:13:27 +0800591 default:
592 tls:
593 secretName: barbican-tls-internal
594 issuerRef:
595 kind: ClusterIssuer
596 name: ca-clusterissuer
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500597 path:
598 default: /
599 scheme:
600 default: http
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100601 service: http
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500602 port:
603 api:
604 default: 9311
605 public: 80
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100606 service: 9311
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500607 oslo_db:
608 auth:
609 admin:
610 username: root
611 password: password
612 secret:
613 tls:
614 internal: mariadb-tls-direct
615 barbican:
616 username: barbican
617 password: password
618 hosts:
619 default: mariadb
620 host_fqdn_override:
621 default: null
622 path: /barbican
623 scheme: mysql+pymysql
624 port:
625 mysql:
626 default: 3306
627 oslo_messaging:
628 auth:
629 admin:
630 username: rabbitmq
631 password: password
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100632 secret:
633 tls:
634 internal: rabbitmq-tls-direct
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500635 barbican:
636 username: barbican
637 password: password
638 statefulset:
639 replicas: 2
640 name: rabbitmq-rabbitmq
641 hosts:
642 default: rabbitmq
643 host_fqdn_override:
644 default: null
645 path: /barbican
646 scheme: rabbit
647 port:
648 amqp:
649 default: 5672
650 http:
651 default: 15672
652 oslo_cache:
653 auth:
654 # NOTE(portdirect): this is used to define the value for keystone
655 # authtoken cache encryption key, if not set it will be populated
656 # automatically with a random value, but to take advantage of
657 # this feature all services should be set to use the same key,
658 # and memcache service.
659 memcache_secret_key: null
660 hosts:
661 default: memcached
662 host_fqdn_override:
663 default: null
664 port:
665 memcache:
666 default: 11211
667 fluentd:
668 namespace: null
669 name: fluentd
670 hosts:
671 default: fluentd-logging
672 host_fqdn_override:
673 default: null
674 path:
675 default: null
676 scheme: 'http'
677 port:
678 service:
679 default: 24224
680 metrics:
681 default: 24220
682 # NOTE(tp6510): these endpoints allow for things like DNS lookups and ingress
683 # They are using to enable the Egress K8s network policy.
684 kube_dns:
685 namespace: kube-system
686 name: kubernetes-dns
687 hosts:
688 default: kube-dns
689 host_fqdn_override:
690 default: null
691 path:
692 default: null
693 scheme: http
694 port:
695 dns:
696 default: 53
697 protocol: UDP
698 ingress:
699 namespace: null
700 name: ingress
701 hosts:
702 default: ingress
703 port:
704 ingress:
705 default: 80
706
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100707tls:
708 identity: false
709 oslo_messaging: false
710 oslo_db: false
711
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500712manifests:
713 certificates: false
714 configmap_bin: true
715 configmap_etc: true
716 deployment_api: true
717 ingress_api: true
718 job_bootstrap: true
719 job_db_init: true
720 job_db_sync: true
721 job_db_drop: false
722 job_image_repo_sync: true
723 job_rabbit_init: true
724 job_ks_endpoints: true
725 job_ks_service: true
726 job_ks_user: true
727 pdb_api: true
728 pod_test: true
729 secret_db: true
730 network_policy: false
731 secret_ingress_tls: true
732 secret_keystone: true
733 secret_rabbitmq: true
Oleksandr Kozachenkoa10d7852023-02-02 22:01:16 +0100734 secret_registry: true
Mohammed Naserf3f59a72023-01-15 21:02:04 -0500735 service_ingress_api: true
736 service_api: true
737...