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

Backport of NET-4806: Fix ACL tokens for pods don't have pod name set into release/1.0.x #2821

Conversation

hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #2808 to be assessed for backporting due to the inclusion of the label backport/1.0.x.

The below text is copied from the body of the original PR.


Prior to this PR, tokens descriptions would have a missing pod name and would have the form: {pod: "default/"}

This poses issues for the endpoints controller, which will try to parse the metadata and use it to clean up the token. Without the pod name, consul-k8s will continually leak tokens.

Changes proposed in this PR:

  • Use environment variables for populating the login-meta in dataplane rather than arguments.

How I've tested this PR:
Ran a cluster locally and manually inspected the token description field includes the pod name. Added a new step to an acceptance test.

How I expect reviewers to test this PR:
👀

Checklist:


Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/derekm/NET-4806/acl-token-missing-pod/yearly-chief-squirrel branch from f7d8fb2 to a5495ee Compare August 22, 2023 19:17
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/derekm/NET-4806/acl-token-missing-pod/yearly-chief-squirrel branch from c8611dd to 2422e38 Compare August 22, 2023 19:17
@hc-github-team-consul-core hc-github-team-consul-core merged commit 821592a into release/1.0.x Aug 22, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/derekm/NET-4806/acl-token-missing-pod/yearly-chief-squirrel branch August 22, 2023 21:01
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