Files
Ade Lee fb6b7095a1 Add barbican_region_name support to Swift kms_keymaster middleware
This commit adds support for barbican_region_name configuration option
in Swift's kms_keymaster middleware to enable proper multi-region Barbican
endpoint selection via Castellan.

Changes:
- Added 'barbican_region_name' to keymaster_opts tuple to allow reading
  the option from configuration
- Set barbican_region_name in Castellan's config after calling
  options.set_defaults() so it's available to BarbicanKeyManager
- This enables Castellan's BarbicanKeyManager to use the region for
  endpoint discovery in multi-region deployments

The barbican_region_name option should be set in the [kms_keymaster]
section of the keymaster configuration file (or proxy-server.conf).
Castellan's BarbicanKeyManager will use this value when discovering
the Barbican endpoint from the service catalog.

Related-Bug: #2138973
Signed-off-by: Ade Lee <alee@redhat.com>
Change-Id: I02e86c736398698d1bae19c17e9d97b1974e5054
2026-01-26 11:09:12 -08:00
..
2025-07-21 11:37:15 -07:00