Secrets should use single quotes to not expand special characters #543

Open
opened 2023-10-14 16:07:48 +00:00 by pat-s · 2 comments
pat-s commented 2023-10-14 16:07:48 +00:00 (Migrated from gitea.com)

See #454

See #454
senare commented 2023-10-27 08:02:14 +00:00 (Migrated from gitea.com)

I might have run into this, when I tried to configure Gitea and Authentik from the helm chart

I gave up and configured using the GUI/WebConsole.. but would be nice if I could put it into code/git !

If/when i revisit it I could try again (need to have a test/lab environment to reproduce, logs etc ...)

Guide I followed would be here and snippet I was trying to add similar to this ...

  oauth:
    - name: "authentik IAM"
      id: "2"
      provider: "openidConnect"
      existingSecret: gitea-authentik-secret
      autoDiscoveryUrl: "https://authentik.company/application/o/gitea-slug/.well-known/openid-configuration"
      iconUrl: "https://goauthentik.io/img/icon.png"
      scopes: "email profile"

you would end up with errors somewhere in init-containers, I thought it was me failing to configure correct so shame I didn't save errors etc ...

I might have run into this, when I tried to configure Gitea and [Authentik](https://goauthentik.io/ ) from the helm chart I gave up and configured using the GUI/WebConsole.. but would be nice if I could put it into code/git ! If/when i revisit it I could try again (need to have a test/lab environment to reproduce, logs etc ...) Guide I followed would be [here](https://goauthentik.io/integrations/services/gitea/) and snippet I was trying to add similar to this ... ```yaml oauth: - name: "authentik IAM" id: "2" provider: "openidConnect" existingSecret: gitea-authentik-secret autoDiscoveryUrl: "https://authentik.company/application/o/gitea-slug/.well-known/openid-configuration" iconUrl: "https://goauthentik.io/img/icon.png" scopes: "email profile" ``` you would end up with errors somewhere in init-containers, I thought it was me failing to configure correct so shame I didn't save errors etc ...
pat-s commented 2023-10-31 12:27:31 +00:00 (Migrated from gitea.com)

If you didn't use any special chars which would have been misinterpreted by the double-quotes, then this might be unrelated. The config from above looks "simple" and should work as-is.

Did you have a special char in the secret?

If you didn't use any special chars which would have been misinterpreted by the double-quotes, then this might be unrelated. The config from above looks "simple" and should work as-is. Did you have a special char in the secret?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#543
No description provided.