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

[v1.14] Only enable groups params if secrets are present (google oidc) #1233

Merged
merged 4 commits into from Mar 19, 2021

Conversation

rene-dekker
Copy link
Member

Cannot be picked.

Only enable groups params if secrets are present (google oidc)

@marvin-tigera marvin-tigera added this to the v1.16.0 milestone Mar 18, 2021
@rene-dekker rene-dekker changed the base branch from master to release-v1.14 March 18, 2021 16:15
@@ -458,7 +458,7 @@ func (d *dexConfig) Connector() map[string]interface{} {
}

//Google specific.
if d.idpSecret.Data[serviceAccountSecretField] != nil || d.idpSecret.Data[adminEmailSecretField] == nil {
if d.idpSecret.Data[serviceAccountSecretField] != nil && d.idpSecret.Data[adminEmailSecretField] != nil {
config["serviceAccountFilePath"] = serviceAccountSecretLocation
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: Any reason "serviceAccountFilePath" is hard-coded string instead of a constant like the other values?

The string is only used once, so there's that. But, it still feels more consistent to have it defined in a const like the others.

Copy link
Contributor

@stevegaossou stevegaossou left a comment

Choose a reason for hiding this comment

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

LGTM

@tmjd tmjd added docs-not-required enterprise Feature applies to enterprise only kind/bug Something isn't working and removed docs-pr-required labels Mar 19, 2021
@tmjd tmjd modified the milestones: v1.16.0, v1.14.3 Mar 19, 2021
tmjd pushed a commit that referenced this pull request Mar 19, 2021
…are present (google (#1236)

* Only enable groups params if secrets are present (google oidc)

* PR suggestion

* Add google sa + path test
@tmjd tmjd merged commit 4ece535 into tigera:release-v1.14 Mar 19, 2021
@rene-dekker rene-dekker deleted the saas-1352-v1.14 branch March 19, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required enterprise Feature applies to enterprise only kind/bug Something isn't working release-note-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants