Skip to content

Commit

Permalink
send flp authorization as ClientConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Jul 22, 2022
1 parent a68964e commit 5ce9179
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/flowlogspipeline/flp_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,16 @@ func (b *builder) addTransformStages(lastStage *config.PipelineBuilderStage) {
lokiWrite.TimestampLabel = "TimeFlowEndMs"
lokiWrite.TimestampScale = "1ms"
lokiWrite.TenantID = b.desiredLoki.TenantID
var authorization *promConfig.Authorization
if b.desiredLoki.SendAuthToken {
lokiWrite.BearerAuthTokenPath = tokensPath + constants.FLPName
authorization = &promConfig.Authorization{
Type: "Bearer",
CredentialsFile: tokensPath + constants.FLPName,
}
}
//TODO: set proper tls config https://issues.redhat.com/browse/NETOBSERV-309
lokiWrite.ClientConfig = &promConfig.HTTPClientConfig{
Authorization: authorization,
TLSConfig: promConfig.TLSConfig{
InsecureSkipVerify: true,
},
Expand Down

0 comments on commit 5ce9179

Please sign in to comment.