Skip to content

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

Merged
amartinezfayo merged 2 commits intospiffe:mainfrom
Manbeardo:aws-iid-network-interface-order
Jul 30, 2024
Merged

[aws_iid] tolerate network interfaces not being ordered by device index#5300
amartinezfayo merged 2 commits intospiffe:mainfrom
Manbeardo:aws-iid-network-interface-order

Conversation

@Manbeardo
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread pkg/server/plugin/nodeattestor/awsiid/iid.go Outdated
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
Copy Markdown
Contributor Author

replaced fmt.Errorf with errors.New where applicable

Copy link
Copy Markdown
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!

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