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

Switch policies in AppRole to TypeCommaStringSlice #3163

Merged
merged 2 commits into from Aug 15, 2017
Merged

Conversation

jefferai
Copy link
Member

Fixes #3147

@jefferai jefferai added this to the 0.8.1 milestone Aug 14, 2017
}
policies = strings.Split(policiesRaw, ",")
case []string:
policies = policiesRaw.([]string)
Copy link
Member

Choose a reason for hiding this comment

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

If an empty string is supplied as policies, do we want to add the default policy?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't do it here and I'm afraid things will break (especially, in the token store). We already have defaults in approle's schema.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

Copy link
Member

@vishalnayak vishalnayak left a comment

Choose a reason for hiding this comment

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

One minor question. Other than that, LGTM!

@jefferai jefferai merged commit 64cb31a into master Aug 15, 2017
@jefferai jefferai deleted the issue-3147 branch August 15, 2017 00:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants