Skip to content

Commit 120da58

Browse files
authored
Expand audit error message to reference config-based devices (#1740)
Signed-off-by: Alexander Scheel <ascheel@gitlab.com>
1 parent 6bfd527 commit 120da58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vault/logical_system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3141,7 +3141,7 @@ func (b *SystemBackend) handleEnableAudit(ctx context.Context, req *logical.Requ
31413141
conf := b.Core.rawConfig.Load().(*server.Config)
31423142

31433143
if !conf.UnsafeAllowAPIAuditCreation {
3144-
return handleError(fmt.Errorf("cannot enable audit device via API"))
3144+
return handleError(fmt.Errorf("cannot enable audit device via API; use declarative, config-based audit device management instead"))
31453145
}
31463146

31473147
if _, hasPrefix := options["prefix"]; hasPrefix && !conf.AllowAuditLogPrefixing {

0 commit comments

Comments
 (0)