-
Notifications
You must be signed in to change notification settings - Fork 72
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
Create audit log when archive is sent to device #1847
base: main
Are you sure you want to change the base?
Conversation
6da81a7
to
5573666
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.
can you please return :ok
from the templates, this makes dialyzer happy
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.
I don't think we want this. There is no discernment check for archive versions and this happens on every connection, so this has potential to really bloat the logs again (like online/offline/exetension logs that have been removed)
Perhaps a small metric is useful or we wait until proper adjustment and handling of archives?
Ahhh, true true, there is no annoucement from the device about what archive version has been downloaded and installed (something bigger we should consider improving) what about moving the logging to |
Great callout, thank you.
This is a good option to avoid table bloat over time, but then we don't get an audit log if we do send the archive update on connect (which feels weird). I think if we log 2 out of 3 scenarios that's better than none? |
Do we need to store it in the database or can we just log it with the normal logger? |
We'd want to avoid anything metric related that's |
I would suggest only adding this audit log event to |
@joshk it shall be done |
If an archive is sent to a device on connect or from an archive update, an audit log is created specifying device, deployment, and archive details.