-
Notifications
You must be signed in to change notification settings - Fork 121
Assistance with environment variables for credentials #305
Comments
Can you expand on your specific scenario on why you require these credentials? |
These would be as an alternative to the credentials that sit inside config.yaml. |
You can use the |
Wow, I totally glazed over the |
Sorry, still having problems finding which config value corresponds to which environment variable. credentials: |
With AAD, you don't need to populate any secrets, please see: https://github.com/Azure/batch-shipyard/blob/master/docs/11-batch-shipyard-configuration-credentials.md, specifically the Additionally, this section is helpful (even without using keyvault): https://github.com/Azure/batch-shipyard/blob/master/docs/74-batch-shipyard-azure-keyvault.md#authenticating-with-aad-and-azure-keyvault |
Okay, I've gone through it and done a bit of jumping around, and I'm getting an error. Error : Docs state:
My credentials.yaml:
Environment (obfuscated)
Since I have the env defined, that should be the global AAD section, in which case I should not need to specify account_key in the yaml file. |
Looks like this is a case of bad errors and missing documentation, apologies. You need to also populate: credentials:
# other stuff
management:
subscription_id: 123... |
That worked, I'm up and running! Thanks very much for the assistance! I doubt a subscription ID is anything sensitive, but it probably couldn't hurt to move that to an environment variable as well? |
Apparently this is already supported, but I forgot to doc it. Use the environment variable Edit: It's actually documented here: https://github.com/Azure/batch-shipyard/blob/master/docs/20-batch-shipyard-usage.md#shared-options |
Similar to the other SHIPYARD_ environment variables, it would be great if we could have the credentials as environment variables.
SHIPYARD_BATCH_ACCOUNT_KEY
SHIPYARD_BATCH_ACCOUNT_URL
SHIPYARD_BATCH_STORAGE_ACCOUNT
SHIPYARD_BATCH_STORAGE_KEY
SHIPYARD_BATCH_STORAGE_ENDPOINT
The text was updated successfully, but these errors were encountered: