-
Notifications
You must be signed in to change notification settings - Fork 613
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
Update dependencies to include security patches reported by dependabot for agent #3367
Conversation
0fecc49
to
dec41b4
Compare
dec41b4
to
fc82277
Compare
f56f218
to
a060984
Compare
a060984
to
4cdd048
Compare
fc76228
to
c088bac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks for the changes!
Q: Is the changes we made in this PR for CNI v0.8.1 compatible with CNI v1.x? I think we probably want to update to that as it is the latest supported major version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this -- these dependency fixes are a big hill to climb!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The steps in the description are clear and most of the changes are in vendor. Again thanks for this.
I've not looked into v1.x, but would expect to see maybe some more API changes that need to be addressed, considering it's a major version bump. It's probably better to take up a separate task for the upgrade. Also, it may be helpful to sync up with CNI version in https://github.com/aws/amazon-vpc-cni-plugins (currently at 0.8.1) |
…t for agent (#3367) * Upgrade github.com/containernetworking/cni to 0.8.1 * Upgrade github.com/containerd/containerd to v1.4.13 * Fix goimports * Fix logging data race * Address required network name field for updated CNI spec * Address ifname size limit
Summary
Update dependencies to include security patches reported by dependabot for agent
Implementation details
Ran
go get
,go mod tidy
andgo mod vendor
to updatedpackages that have security vulnerabilities called out by dependabot.For
amazon-ecs-agent/agent
, affected packages arecontainernetworking/cni
- upgrade to use0.8.1
Result.String()
was removed from CNI API in this PR. We will simply print the struct instead. We also reran mock gen for ecscni package to address the API changes.Name
is now required to be non-empty during CNI invocation due to this PR. We will add a placeholder string to fulfill the spec.ifname
(interface name) now needs to be less than 14 characters due to this PRgithub.com/docker/docker
- upgrade to use1.6.1
- we are already using a newer version released in 2020, while1.6.1
was released in year 2015github.com/containerd/containerd
Testing
make test
make release
New tests cover the changes: no
Description for the changelog
Update dependencies to include security patches reported by dependabot for agent
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.