Skip to content

Conversation

@CDThomas
Copy link
Contributor

This change updates EncryptedTable::init_headless to build its own CtsConfig and pass it into ZeroKMSConfigBuilder. By default, ZeroKMSConfigBuilder will build its own CtsConfig without environment variable overrides. Using CtsConfig::builder().with_env() and passing that to ZeroKMSConfigBuilder allows for overriding CTS config from environment variables.

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…it_headless`

This change updates `EncryptedTable::init_headless` to build its own `CtsConfig` and
pass it into `ZeroKMSConfigBuilder`. By default, `ZeroKMSConfigBuilder` will build its
own `CtsConfig` without environment variable overrides. Using
`CtsConfig::builder().with_env()` and passing that to `ZeroKMSConfigBuilder` allows
for overriding CTS config from environment variables.
@CDThomas CDThomas requested a review from coderdan October 10, 2024 01:04
Copy link
Contributor

@auxesis auxesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for whipping this up so quickly @CDThomas.

@coderdan coderdan merged commit 73650c5 into main Oct 10, 2024
3 checks passed
@coderdan coderdan deleted the fix/allow-cts-config-from-env branch October 10, 2024 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants