-
Notifications
You must be signed in to change notification settings - Fork 619
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
Move AuditLogger interface to ecs-agent module #3653
Conversation
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.
one nit -- but not blocking on it. If you can take a look in a future update, please do
agent/go.mod
Outdated
@@ -3,6 +3,7 @@ module github.com/aws/amazon-ecs-agent/agent | |||
go 1.19 | |||
|
|||
require ( | |||
github.com/aws/amazon-ecs-agent/ecs-agent v0.0.0-00010101000000-000000000000 |
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.
nit: was this go.mod auto-generated via go mod
(I assume it was)?
can this just be v0.0.0
since we're replacing it anyway?
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.
Yeah this was auto-generated. I will simplify this.
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.
perfect in every way
Summary
Moving
AuditLogger
interface to the newecs-agent
module. The interface will be used in future functionality to be added toecs-agent
module.Implementation details
AuditLogger
interface and the correspondingLogRequest
struct toecs-agent
module.agent
module to not create mock implementation forAuditLogger
interface.ecs-agent
module to create mock implementation forAuditLogger
interface inecs-agent
module.ecs-agent
to match the version used byagent
module.agent
depend onecs-agent
and update the usage ofAuditLogger
andLogRequest
to import them fromecs-agent
module instead.Testing
Built Agent from source and performed the following tests that both trigger audit logging.
/var/log/ecs/audit.log
file./var/log/ecs/audit.log
file.New tests cover the changes: no
Description for the changelog
Move AuditLogger interface to ecs-agent module.
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.