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

[aws_iid] tolerate network interfaces not being ordered by device index #5300

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

Manbeardo
Copy link
Contributor

Pull Request check list

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

Affected functionality

aws_iid agent NodeAttestor

Description of change

This diff updates the aws_iid node attestation process to search the list of network interfaces for the interface with device index 0 instead of bailing out if the first element of the list does not have device index 0.

I don't believe this change requires a documentation update. Please point me in the right direction if that's incorrect.

Which issue this PR fixes
#5299

Copy link
Member

@amartinezfayo amartinezfayo 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 @Manbeardo for this contribution, it looks great.
Just a small comment.

pkg/server/plugin/nodeattestor/awsiid/iid.go Outdated Show resolved Hide resolved
Signed-off-by: James Ribe <manbeardo@gmail.com>
@Manbeardo Manbeardo force-pushed the aws-iid-network-interface-order branch from 8902b39 to b846f7d Compare July 26, 2024 23:02
@Manbeardo
Copy link
Contributor Author

replaced fmt.Errorf with errors.New where applicable

Copy link
Member

@amartinezfayo amartinezfayo 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 @Manbeardo!

@amartinezfayo amartinezfayo added this to the 1.10.2 milestone Jul 30, 2024
@amartinezfayo amartinezfayo merged commit d52216d into spiffe:main Jul 30, 2024
33 checks passed
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