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 ccade36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/cluster/log-search.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func newAuditWebhookConfig(tenant *miniov1.Tenant, secret *corev1.Secret) auditW
auditToken := string(secret.Data[miniov1.LogAuditTokenKey])
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 ccade36

Please sign in to comment.