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

[FLYTE-486] Support selecting IDP based on the query parameter #4838

Merged
merged 5 commits into from
Feb 6, 2024

Conversation

pmahindrakar-oss
Copy link
Contributor

@pmahindrakar-oss pmahindrakar-oss commented Feb 6, 2024

Overview

  • Adds IDP parameter which allows to selectively login to a particular IDP
  • The IDP parameter is exposed by okta which allows to selectively do Identity verification using the IDP
  • Flyteadmin if finds this parameter then forwards to okta to complete the auth flow
  • Each IDP uses different idp parameter hence made it configurable

Test Plan

Tested on internal dogfood tenant and verified without the google tab in the login screen we can login using the okta apps in the dashboard page
Screenshot 2024-02-05 at 1 15 26 PM

Rollout Plan (if applicable)

Rollout to cloud and serverless-gcp

Jira Issue

https://unionai.atlassian.net/browse/

Checklist

  • Added tests
  • Ran a deploy dry run and shared the terraform plan
  • Added logging and metrics
  • Updated dashboards and alerts
  • Updated documentation

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Feb 6, 2024
@pmahindrakar-oss pmahindrakar-oss changed the title Support selecting IDP based on the query parameter [FLYTE-486] Support selecting IDP based on the query parameter Feb 6, 2024
Copy link
Contributor

@katrogan katrogan left a comment

Choose a reason for hiding this comment

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

looks good, just one nit

flyteadmin/auth/handlers.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (bfe61f9) 58.97% compared to head (6b617c9) 58.96%.
Report is 1 commits behind head on master.

Files Patch % Lines
flyteadmin/auth/handlers.go 73.33% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4838      +/-   ##
==========================================
- Coverage   58.97%   58.96%   -0.02%     
==========================================
  Files         644      644              
  Lines       55146    55160      +14     
==========================================
  Hits        32525    32525              
- Misses      20048    20059      +11     
- Partials     2573     2576       +3     
Flag Coverage Δ
unittests 58.96% <75.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

katrogan
katrogan previously approved these changes Feb 6, 2024
flyteadmin/auth/handlers.go Outdated Show resolved Hide resolved
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 6, 2024
@pmahindrakar-oss pmahindrakar-oss enabled auto-merge (squash) February 6, 2024 20:25
katrogan
katrogan previously approved these changes Feb 6, 2024
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
@pmahindrakar-oss pmahindrakar-oss merged commit b661697 into master Feb 6, 2024
48 of 49 checks passed
@pmahindrakar-oss pmahindrakar-oss deleted the add-idp-param-flyte branch February 6, 2024 22:47
pmahindrakar-oss added a commit that referenced this pull request May 1, 2024
#61)

* Added config option for IDPQuery parameter

---------

Signed-off-by: pmahindrakar-oss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants