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

Switch to cobra/viper for CLI, allow env var override #22

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

fydrah
Copy link
Owner

@fydrah fydrah commented Apr 15, 2020

  • You can now override configuration using environment variables:

    "LOGINAPP_ABC" where ABC is the full path of the variable to override,
    exemple: LOGINAPP_OIDC_CLIENT_ID=mycustomid will override
    oidc.client.id key from config

    closes Support oidc client secret from environment variable or file #20

  • In order to allow env var overrides, we had to change some variable
    name. All variables (excluded clusters vars) follow a lower camel case
    convention:

    • redirect_url --> redirectURL
    • root_ca --> rootCA
    • extra_scopes --> extraScopes
    • extra_auth_code_opts --> extraAuthCodeOpts
    • offline_as_scope --> offlineAsScope
    • cross_clients --> crossClients
    • main_username_claim --> mainUsernameClaim
    • main_client_id --> mainClientID
    • assets_dir --> assetsDir
    • templates_dir --> templatesDir
  • minor code refactoring

  • Issue in templating, Name was not overrided

* You can now override configuration using environment variables:

  "LOGINAPP_ABC" where ABC is the full path of the variable to override,
  exemple: LOGINAPP_OIDC_CLIENT_ID=mycustomid will override
  oidc.client.id key from config

  closes #20

* In order to allow env var overrides, we had to change some variable
  name. All variables (excluded `clusters` vars) follow a lower camel case
  convention:
  - `redirect_url` --> `redirectURL`
  - `root_ca` --> `rootCA`
  - `extra_scopes` --> `extraScopes`
  - `extra_auth_code_opts` --> `extraAuthCodeOpts`
  - `offline_as_scope` --> `offlineAsScope`
  - `cross_clients` --> `crossClients`
  - `main_username_claim` --> `mainUsernameClaim`
  - `main_client_id` --> `mainClientID`
  - `assets_dir` --> `assetsDir`
  - `templates_dir` --> `templatesDir`

* minor code refactoring
* Issue in templating, `Name` was not overrided
@fydrah fydrah merged commit 3b2a8c2 into 3.0.0-rc1 Apr 15, 2020
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 this pull request may close these issues.

None yet

1 participant