Using OIDC values gives error in configure-gitea #352

Closed
opened 2022-08-22 06:15:44 +00:00 by clbx · 2 comments
clbx commented 2022-08-22 06:15:44 +00:00 (Migrated from gitea.com)

When using the following values for OIDC

  oauth:
    - name: '<Name>'
      existingSecret: gitea-oauth-secret
      auto-discover-url: https://auth.services.domain.tld/application/o/gitea/.well-known/openid-configuration
apiVersion: v1
kind: Secret
metadata:
  name: gitea-oauth-secret
  namespace: applications
type: Opaque
stringData:
  key: <key>
  secret: <secret>

Gives this error in the configure-gitea container:

2022/08/22 06:13:38 main.go:117:main() [F] Failed to run app with [/usr/local/bin/gitea admin auth add-oauth --auto-discover-url https://auth.services.domain.tld/application/o/gitea/.well-known/openid-configuration --key <key> --name <name> --secret <secret>]: auth source is not actived

I can't find anything in the docs to "activate" the oauth, and don't see where my configuration deviates from the documentation.

When using the following values for OIDC ``` oauth: - name: '<Name>' existingSecret: gitea-oauth-secret auto-discover-url: https://auth.services.domain.tld/application/o/gitea/.well-known/openid-configuration ``` ``` apiVersion: v1 kind: Secret metadata: name: gitea-oauth-secret namespace: applications type: Opaque stringData: key: <key> secret: <secret> ``` Gives this error in the ``configure-gitea`` container: ``` 2022/08/22 06:13:38 main.go:117:main() [F] Failed to run app with [/usr/local/bin/gitea admin auth add-oauth --auto-discover-url https://auth.services.domain.tld/application/o/gitea/.well-known/openid-configuration --key <key> --name <name> --secret <secret>]: auth source is not actived ``` I can't find anything in the docs to "_activate_" the oauth, and don't see where my configuration deviates from the documentation.
izeau commented 2022-08-28 22:17:52 +00:00 (Migrated from gitea.com)

I just ran into this issue but as it turns out it was due to a misconfiguration. It looks like you are missing the provider property. Make sure you set it to openidConnect (note the capital C -- I did not and got stuck on that for hours).

Best of luck.

I just ran into this issue but as it turns out it was due to a misconfiguration. It looks like you are missing the `provider` property. Make sure you set it to `openidConnect` (note the capital `C` -- I did not and got stuck on that for hours). Best of luck.
pat-s commented 2023-04-14 21:20:51 +00:00 (Migrated from gitea.com)

It reads like this is solved and also that it's not something for the chart as we cannot assert any possible combination of settings.

It reads like this is solved and also that it's not something for the chart as we cannot assert any possible combination of settings.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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