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

Add option to use anonymous authentication in k8s WorkloadAttestor #3273

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

rturner3
Copy link
Collaborator

@rturner3 rturner3 commented Jul 25, 2022

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality
k8s WorkloadAttestor plugin integration with kubelet

Description of change
The k8s WorkloadAttestor plugin does not provide a way to obtain selectors from the kubelet over the secure port when the kubelet is configured to use anonymous authentication. Add a configuration field use_anonymous_authentication that allows the plugin to send unauthenticated requests to the kubelet secure port.

Which issue this PR fixes
#3193

Tested this with the k8s-reconcile test with these changes applied in my local branch: 0d59a37

The k8s WorkloadAttestor plugin does not provide a way to obtain
selectors from the kubelet over the secure port when the kubelet
is configured to use anonymous authentication. Add a configuration
field `use_anonymous_authentication` that allows the plugin to send
unauthenticated requests to the kubelet secure port.

Signed-off-by: Ryan Turner <[email protected]>
Copy link
Collaborator

@MarcosDY MarcosDY left a comment

Choose a reason for hiding this comment

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

Great!!! Code looks good, but can you add the new configuration with some notes on https://github.com/spiffe/spire/blob/main/conf/agent/agent_full.conf#L319?

Ryan Turner added 2 commits July 26, 2022 17:53
Signed-off-by: Ryan Turner <[email protected]>
Signed-off-by: Ryan Turner <[email protected]>
Copy link
Collaborator

@MarcosDY MarcosDY left a comment

Choose a reason for hiding this comment

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

LGTM!!!

@rturner3 rturner3 merged commit 6e3f04b into spiffe:main Jul 26, 2022
@rturner3 rturner3 deleted the kubelet-anonymous-auth branch July 26, 2022 20:57
@rturner3 rturner3 added this to the 1.4.0 milestone Jul 27, 2022
stevend-uber pushed a commit to stevend-uber/spire that referenced this pull request Oct 16, 2023
…piffe#3273)

* Add option to use anonymous authentication in k8s WorkloadAttestor

The k8s WorkloadAttestor plugin does not provide a way to obtain
selectors from the kubelet over the secure port when the kubelet
is configured to use anonymous authentication. Add a configuration
field `use_anonymous_authentication` that allows the plugin to send
unauthenticated requests to the kubelet secure port.

Signed-off-by: Ryan Turner <[email protected]>
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.

2 participants