Open chb0github opened 7 years ago
Auditing was one of the use cases I had in my mind when I designed the hook feature.
You should create a separate table for auditing. As it's a one-time operation, doing it in bootstrap would make sense.
Then insert those information you need using hooks.
In your list, tag
and client_id
might be tricky to get, but other items should be straight-forward.
Please read advanced usage section if you haven't.
I can get onboard with that thinking.
Can I use hooks to inject environment variables? like ${env.SSH_CLIENT}
environment variable are available inside the JVM.
Sure. In a JavaScript hook script, you can get environment variables as follows.
java.lang.System.getenv("SSH_CLIENT");
It's still Java :)
Well, since I would be adding to a DB then I really need to have a templated insert statement for the hook.
I have been evaluating several db migration tools and mybatis has been the most promising (+1)
However, one thing that I would love to see is better auditing in the change log.
Specifically:
This is kinda the schema I had in mind:
Based on what I am seeing from this project I can probably achieve this with hooks. It would be great to have it baked in