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

Fix incorrect container id selection in k8s agent workload attestor #950

Merged
merged 2 commits into from
Jun 7, 2019
Merged

Fix incorrect container id selection in k8s agent workload attestor #950

merged 2 commits into from
Jun 7, 2019

Conversation

calaniz
Copy link
Contributor

@calaniz calaniz commented Jun 7, 2019

Pull Request check list

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

Affected functionality
This fixes k8s agent workload attestor container id selection bug. #949

Description of change
Strip any container runtime prefix and ".scope" from container id in /proc/<pid>/cgroup

Which issue this PR fixes
#949

Signed-off-by: Cesar Alaniz <calaniz@squareup.com>
Signed-off-by: Cesar Alaniz <calaniz@squareup.com>
Copy link
Member

@evan2645 evan2645 left a comment

Choose a reason for hiding this comment

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

Thank you very much for this @calaniz! It is appreciated

@evan2645 evan2645 merged commit 520f43b into spiffe:master Jun 7, 2019
@calaniz calaniz deleted the fix-incorrect-container-id branch June 7, 2019 21:13
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