Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally prefer downstream X509 CA TTL #5264

Merged
merged 3 commits into from
Jul 8, 2024
Merged

Conversation

azdagron
Copy link
Member

Plumbs through and uses the "preferred TTL" value from the downstream server when minting downstream X509 CA.

This behavior is still off by default. It can be turned on by setting the use_legacy_downstream_x509_ca_ttl=false configuration value.

This configuration value will remain false by default through SPIRE v1.11.xx. The default can change to true, and the flag deprecated, in SPIRE v1.12.0.

Resolves #5236

Plumbs through and uses the "preferred TTL" value from the downstream
server when minting downstream X509 CA.

This behavior is still off by default. It can be turned on by setting
the `use_legacy_downstream_x509_ca_ttl=false` configuration value.

This configuration value will remain false by default through SPIRE
v1.11.xx. The default can change to true, and the flag deprecated, in
SPIRE v1.12.0.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
cmd/spire-server/cli/run/run.go Outdated Show resolved Hide resolved
cmd/spire-server/cli/run/run.go Outdated Show resolved Hide resolved
pkg/server/config.go Outdated Show resolved Hide resolved
pkg/server/credtemplate/builder.go Show resolved Hide resolved
pkg/server/credtemplate/builder_test.go Show resolved Hide resolved
Signed-off-by: Andrew Harding <azdagron@gmail.com>
@azdagron azdagron merged commit 7d38c52 into main Jul 8, 2024
33 checks passed
@azdagron azdagron deleted the azdagron/add-preferred-ttl branch July 8, 2024 17:12
edwbuck pushed a commit to edwbuck/spire that referenced this pull request Aug 20, 2024
Plumbs through and uses the "preferred TTL" value from the downstream
server when minting downstream X509 CA.

This behavior is still off by default. It can be turned on by setting
the `use_legacy_downstream_x509_ca_ttl=false` configuration value.

This configuration value will remain false by default through SPIRE
v1.11.xx. The default can change to true, and the flag deprecated, in
SPIRE v1.12.0.
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.

Downstream spire-server does not honour ca_ttl configurable.
2 participants