feature: Add signing (hmac-sha256) of audit entries (#1666)

This commit is contained in:
Jim authored and GitHub committed 2021-11-05 20:44:33 -04:00
1 parent 55ab75f364
commit eecd878b36
16 files changed
+344 -37

No files matched your search

+9 -4
View File
@@ -490,10 +490,6 @@ func (c *Command) Run(args []string) int {
c.UI.Error(err.Error())
return base.CommandUserError
}
if err := c.SetupEventing(c.Logger, c.StderrLock, serverName, base.WithEventerConfig(c.Config.Eventing), base.WithEventFlags(eventFlags)); err != nil {
c.UI.Error(err.Error())
return base.CommandCliError
}
// Initialize status grace period (0 denotes using env or default
// here)
@@ -512,6 +508,15 @@ func (c *Command) Run(args []string) int {
c.UI.Error("Controller KMS not found after parsing KMS blocks")
return base.CommandUserError
}
if err := c.SetupEventing(
c.Logger,
c.StderrLock,
serverName,
base.WithEventerConfig(c.Config.Eventing),
base.WithEventFlags(eventFlags)); err != nil {
c.UI.Error(err.Error())
return base.CommandCliError
}
if c.WorkerAuthKms == nil {
c.UI.Error("Worker Auth KMS not found after parsing KMS blocks")
return base.CommandUserError