siilisolutions / hedge

a serverless solution for clojure
Eclipse Public License 1.0
39 stars 6 forks source link

Feature request: Passing credentials as command line parameters or ENV variables instead of authentication file when deploying to Azure #39

Closed erkkikeranen closed 6 years ago

erkkikeranen commented 6 years ago

In some cases it would be nice if a CI / CD runner could deploy without having the Azure Service Principal file lying on the filesystem.

Ideal would be that there would be different authentications available to cover all use cases:

So that you could pass the credentials of the service principal as env variables in runner environment from command line, or if Hedge would use own set of ENV variables to look for.

Usage example idea: boot hedge-azure -r myresgrp -a myfuncapp --username $USERNAME --password $PASSWORD --tenant $TENANT

Or:

boot hedge-azure -r myresgrp -a myfuncapp given env variables HEDGE_AZURE_USERNAME, HEDGE_AZURE_PASSWORD, HEDGE_AZURE_TENANT etc is defined

Why:

jikuja commented 6 years ago

Fixed for Azure