Skip to content

[Installer]: change authProviders from raw data to a secret #6867

Description

@mrsimonemms

Currently, the authProviders in the config.yaml is an array of objects with sensitive data in. THIS IS A BAD IDEA* and will probably raise concern with self-hosted users with additional security/compliance requirements.

Current - array of objects

authProviders:
  - id: Public-GitHub
    host: github.com
    type: GitHub
    oauth:
      clientId: xxx
      clientSecret: xxx
      callBackUrl: https://$DOMAIN/auth/github.com/callback
      settingsUrl: https://github.com/organizations/$ORG_ID/settings/applications/$APP_ID

Proposed - array of secrets

authProviders:
  - kind: secret
    name: auth-provider-github
  - kind: secret
    name: auth-provider-gitlab

Each secret would then have the data in an expected format similar to the current auth provider config.

One of the difficulties with this is that this is injected into server as a ConfigMap, so the object would need to be amended to accept a file location and then read the content from the file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    team: webappIssue belongs to the WebApp team

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions