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

fix(deck/auth): Add the correct security env variables in deck. #953

Merged
merged 1 commit into from
May 30, 2018

Conversation

stewchen
Copy link
Contributor

No description provided.

@stewchen stewchen requested review from lwander and ttomsu May 29, 2018 17:35
Copy link
Member

@lwander lwander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

.setEnabled(true);
}

private void setEnv(String var) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend naming to setEnvTrue

.setEnabled(true);
}

private void setEnv(String var) {
setStartCommand(String.join("\n", "export " + var + "=true", getStartCommand()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genuine question - do we need to export the var? This SO post appears to use some bash magic that I've seen @ewiseblatt use with the python scripts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't, but in this case it doesn't matter since the whole command is encapsulated in start.sh and we don't need to make it a one-liner.

@stewchen stewchen merged commit 2c72ee8 into spinnaker:master May 30, 2018
@stewchen stewchen deleted the deck-auth branch May 30, 2018 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants