Skip to content

MWI: Warn when including Root CA in issuer override chain#57146

Merged
strideynet merged 3 commits intomasterfrom
strideynet/tctl-check-root-ca
Jul 25, 2025
Merged

MWI: Warn when including Root CA in issuer override chain#57146
strideynet merged 3 commits intomasterfrom
strideynet/tctl-check-root-ca

Conversation

@strideynet
Copy link
Copy Markdown
Contributor

@strideynet strideynet commented Jul 24, 2025

Closes #57136

Additionally, adds a --dry-run mode that outputs the resource that would have been created, without actually creating it.

changelog: tctl will now warn the user when importing a SPIFFE issuer override chain that contains the root CA

Comment thread tool/tctl/common/workload_identity_command.go Outdated
Comment thread tool/tctl/common/workload_identity_command.go
Copy link
Copy Markdown
Contributor

@espadolini espadolini left a comment

Choose a reason for hiding this comment

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

Should we also warn if the chain isn't made of issuer-issuee pairs?

Comment thread tool/tctl/common/workload_identity_command.go Outdated
Comment thread tool/tctl/common/workload_identity_command.go Outdated
Comment thread tool/tctl/common/workload_identity_command.go
Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
@strideynet
Copy link
Copy Markdown
Contributor Author

Should we also warn if the chain isn't made of issuer-issuee pairs?

I'll leave that out of scope for now since I think that's a less likely "mistake" to be made - if we see more uptake of the feature we can probably think about adding a more comprehensive suite of "checks".

@strideynet strideynet added this pull request to the merge queue Jul 25, 2025
Merged via the queue into master with commit 2e3e7d7 Jul 25, 2025
40 checks passed
@strideynet strideynet deleted the strideynet/tctl-check-root-ca branch July 25, 2025 12:21
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@strideynet See the table below for backport results.

Branch Result
branch/v17 Create PR
branch/v18 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MWI: External PKI tctl command should warn if Root CA is included in chain

3 participants