Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Provider alert not adding Authorization header for id:password #312

Closed
naustin opened this issue Jan 19, 2022 · 0 comments · Fixed by #317
Closed

Generic Provider alert not adding Authorization header for id:password #312

naustin opened this issue Jan 19, 2022 · 0 comments · Fixed by #317

Comments

@naustin
Copy link

naustin commented Jan 19, 2022

I'm attempting to send Flux alerts to Elastic using the 'generic' Provider event but I'm seeing http 401 returned from Elastic for the notification requests being sent. I've configured linkerd to monitor the requests and it looks like the authorization header is not being added to the 'generic' Provider request message. I'm providing the Elastic URL and credentials using a secret with 'address' and 'token' values.

Here's my Provider configuration:

apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Provider
metadata:
  name: flux-alerts-to-elastic
  namespace: flux-system
spec:
  secretRef:
    name: elastic-token
  type: generic

Here's my elastic-token sealed secret:

apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
  creationTimestamp: null
  name: elastic-token
  namespace: flux-system
spec:
  encryptedData:
    address: <elastic url>
    token: <id:password>
  template:
    data: null
    metadata:
      creationTimestamp: null
      name: elastic-token
      namespace: flux-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant