Skip to content

Commit

Permalink
Fix audit webhook endpoint for log search api server
Browse files Browse the repository at this point in the history
  • Loading branch information
krisis committed Dec 4, 2020
1 parent 38c6a99 commit 2abdd48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/cluster/log-search.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func newAuditWebhookConfig(tenant *miniov1.Tenant, secret *corev1.Secret) auditW
whTarget := fmt.Sprintf("audit_webhook:%s", tenant.LogSearchAPIDeploymentName())

// audit_webhook enable=off endpoint= auth_token=
whArgs := fmt.Sprintf("%s auth_token=\"%s\" endpoint=\"%s\"", whTarget, auditToken, services.GetLogSearchAPIAddr(tenant))
logIngestEndpoint := fmt.Sprintf("%s/%s?token=%s", services.GetLogSearchAPIAddr(tenant), "api/ingest", auditToken)
whArgs := fmt.Sprintf("%s auth_token=\"\" endpoint=\"%s\"", whTarget, logIngestEndpoint)
return auditWebhookConfig{
target: whTarget,
args: whArgs,
Expand Down

0 comments on commit 2abdd48

Please sign in to comment.