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

Disable the default clusterSPIFFEID #93

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Disable the default clusterSPIFFEID #93

merged 1 commit into from
Dec 16, 2024

Conversation

markgoddard
Copy link
Contributor

If you create a trust zone with no attestation policies bound to it, we
previously enabled the default clusterSPIFFEID. This resource matches
any pod in a non-spire namespace.

This behaviour is surprising, and we should instead rely on an explicit
catch-all attestation policy being bound to the trust zone:

cofidectl attestation-policy add kubernetes --name catch-all

This commit fixes the issue by disabling the default clusterSPIFFEID.

Fixes: #92

If you create a trust zone with no attestation policies bound to it, we
previously enabled the default clusterSPIFFEID. This resource matches
any pod in a non-spire namespace.

This behaviour is surprising, and we should instead rely on an explicit
catch-all attestation policy being bound to the trust zone:

  cofidectl attestation-policy add kubernetes --name catch-all

This commit fixes the issue by disabling the default clusterSPIFFEID.

Fixes: #92
@markgoddard markgoddard self-assigned this Dec 16, 2024
@markgoddard markgoddard added this to the release-0.8.0 milestone Dec 16, 2024
Copy link
Contributor

@jsnctl jsnctl left a comment

Choose a reason for hiding this comment

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

LGTM

@markgoddard markgoddard merged commit b246438 into main Dec 16, 2024
5 checks passed
@markgoddard markgoddard deleted the issues/92 branch December 16, 2024 16:53
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.

Disable the default clusterSPIFFEID
2 participants