-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
VAULT-14734: activity log write endpoint #20019
VAULT-14734: activity log write endpoint #20019
Conversation
b002e32
to
5ef2146
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! Just a few comments/questions.
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! I gave a 👍 to some of Hamid's comments that I agreed with.
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 great!
This PR creates a no-op endpoint at
sys/internal/counters/activity/write
for writing activity log data when Vault is compiled with thetestonly
build tag. This endpoint accepts JSON input for the data to write to the activity log.The input is defined as protobuf and Go models are generated from the protobuf for simplicity's sake - there are several "oneof" options in the input, and protobuf gives a built-in way to handle those restrictions.
Currently, the endpoint only validates the input. A later PR will update the handler to generate and write the data.