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

Config key names #2

Open
harold opened this issue Apr 29, 2020 · 1 comment
Open

Config key names #2

harold opened this issue Apr 29, 2020 · 1 comment

Comments

@harold
Copy link
Contributor

harold commented Apr 29, 2020

I woke this morning and realized these keywords are sort of unfortunately named:

(let [account-name (or (:tech.azure.blob/account-name options)
(config/unchecked-get-config :azure-blob-account-name))
account-key (or (:tech.azure.blob/account-key options)
(config/unchecked-get-config :azure-blob-account-key))

They aren't blob specific at all. The name/key pair actually belong to the storage account.

So, better would be:

(config/get-config :azure-storage-account-name)
(config/get-config :azure-storage-account-key)

Drawn from environment variables:

AZURE_STORAGE_ACCOUNT_NAME
AZURE_STORAGE_ACCOUNT_KEY

Unfortunately, I think this change would necessitate kind of a lot of changes in the forecast:

  • Code changes where these are read
  • Secrets injected into the kube cluster for cron jobs and staging site?
  • Secrets injected into prod app service
@harold
Copy link
Contributor Author

harold commented Apr 29, 2020

This exists, but as of today we're living with it and working around it.

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

No branches or pull requests

1 participant