Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Conversation

@aead
Copy link
Member

@aead aead commented Aug 15, 2024

This commit improves the Vault status check logic. KES has to clone the Vault client since it has to clear the namespace header for status checks.

However, KES should use the same TLS client config and token configured on the client when performing such status checks. KES has to opt-in to this behavior since the Vault SDK doesn't do this by default.

This commit improves the Vault status check logic. KES has to
clone the Vault client since it has to clear the namespace header
for status checks.

However, KES should use the same TLS client config and token configured
on the client when performing such status checks. KES has to opt-in
to this behavior since the Vault SDK doesn't do this by default.

Signed-off-by: Andreas Auernhammer <[email protected]>
Copy link
Contributor

@klauspost klauspost left a comment

Choose a reason for hiding this comment

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

LGTM

config := vaultapi.DefaultConfig()
config.Address = c.Endpoint
config.CloneTLSConfig = true // Required for status checks
config.CloneToken = true // Required for status checks
Copy link
Member

Choose a reason for hiding this comment

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

Another ridiculous SDK

@harshavardhana harshavardhana merged commit ef3f85c into master Aug 15, 2024
@harshavardhana harshavardhana deleted the vault-clone-client branch August 15, 2024 15:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants