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

Porter Mixin requires environment variables to be set with TenantId/SubscriptionId/ClientId/Secret #25

Open
simongdavies opened this issue Jul 5, 2019 · 6 comments
Labels
bug Something isn't working hmm 🛑🤔 Needs more thinking time. Don't start on it yet, please.

Comments

@simongdavies
Copy link

These should not need to be provided in some environments (e.g. CloudShell\ACI), should be able to support configuration from CloudShell environment , MSI etc.

@squillace
Copy link

Just bounced into this. No, no no to mixins requiring extra involvement to work, especially undocumented ones. Have this reference credentials passed to the bundle. I could see it working directly with the Azure plugin in some way, but it has to work standing alone. :-|

@squillace squillace assigned squillace, carolynvs and vdice and unassigned squillace Sep 12, 2020
@squillace
Copy link

@carolynvs carolynvs added this to Inbox in Porter and Mixins [OLD] via automation Sep 14, 2020
@carolynvs carolynvs added bug Something isn't working hmm 🛑🤔 Needs more thinking time. Don't start on it yet, please. labels Sep 14, 2020
@carolynvs
Copy link
Member

Unassigning as assignments indicate what Vaughn and I are currently working on. Sometimes that's aspirational but 😀

This mixin needs some design effort instead of one off issues. I've written up some context below but it would be good to re-establish the purpose of this mixin, decide if it is still needed, how it fits in with the az mixin and how users will interact with it in various contexts.

Perhaps this exposes a desired feature where mixins can inject credential definitions in a bundle but with the uncertainty of the bundle, I do not want to spend time on that until we have a solid plan for the mixin first.

Context: It was one of the original mixins, written with custom support for various Azure services, then we realized that would not scale at all (see OSBA). I wrote the az mixin instead and we have been directing people there. Work has been done to remove the custom services so that it instead is good for applying arm templates. As seen by this issue, there are still assumptions that don't work well with Porter's architecture.

@squillace
Copy link

that's a good response. I can see in fact that it's possible that some things should be integrated with the Azure plugin rather than inside mixins per se, too. This mixin was also because the az mixin was just too damned big. Maybe a fix would be to figure out what can be ripped out of azure cli to be useful? I can work on that...

@carolynvs
Copy link
Member

Oh you mean the azure cli is too damn big. 😀 I wish they would just spend a year and rewrite it in Go just to make me happy. Obviously that makes perfect business sense.

This is why for little stuff I wrote this: https://github.com/carolynvs/az-cli

@squillace
Copy link

it's not the python that's big: it's that they don't strip out the test code -- they just ship the entire thing. but 2/3 of the code is test code. :-|

@vdice vdice removed this from Inbox in Porter and Mixins [OLD] Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hmm 🛑🤔 Needs more thinking time. Don't start on it yet, please.
Projects
None yet
Development

No branches or pull requests

4 participants