-
Notifications
You must be signed in to change notification settings - Fork 93
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
Stage 08 extensions and realms/logout #1069
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a4ed5f4
Rename stage 08
danlester bcd62a2
env vars in tf
danlester 6928175
optional envs for extensions
danlester d1029c8
logout_urls and jupyterhub extraEnvs
danlester d5e2af7
Rename Keycloak realm to qhub only (not qhub-<projname>)
danlester ef1a248
Merge branch 'main' into tfexts2
danlester File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
qhub/template/stages/08-enterprise-qhub/modules/qhubextension/locals.tf
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ resource "kubernetes_manifest" "qhubextension-ingressroute" { | |
] | ||
} | ||
] | ||
tls = local.tls | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
qhub/template/stages/08-qhub-tf-extensions/modules/qhubextension/locals.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
locals { | ||
middlewares = (var.private) ? ([{ | ||
name = "traefik-forward-auth" | ||
namespace = var.namespace | ||
}]) : ([]) | ||
|
||
oauth2client_envs = (var.oauth2client) ? ([{ | ||
name = "OAUTH2_AUTHORIZE_URL" | ||
value = "https://${var.external-url}/auth/realms/${var.qhub-realm-id}/protocol/openid-connect/auth" | ||
}, | ||
{ | ||
name = "OAUTH2_ACCESS_TOKEN_URL" | ||
value = "https://${var.external-url}/auth/realms/${var.qhub-realm-id}/protocol/openid-connect/token" | ||
}, | ||
{ | ||
name = "OAUTH2_USER_DATA_URL" | ||
value = "https://${var.external-url}/auth/realms/${var.qhub-realm-id}/protocol/openid-connect/userinfo" | ||
}, | ||
{ | ||
name = "OAUTH2_REDIRECT_BASE" | ||
value = "https://${var.external-url}/${var.urlslug}/" | ||
}, | ||
{ | ||
name = "COOKIE_OAUTH2STATE_NAME" | ||
value = "${var.name}-o2state" | ||
}, | ||
{ | ||
name = "OAUTH2_CLIENT_ID" | ||
value = "${var.name}-client" | ||
}, | ||
{ | ||
name = "OAUTH2_CLIENT_SECRET" | ||
value = random_password.qhub-ext-client[0].result | ||
}]) : ([]) | ||
|
||
keycloakadmin_envs = (var.keycloakadmin) ? ([{ | ||
name = "KEYCLOAK_SERVER_URL" | ||
value = "http://keycloak-headless.${var.namespace}:8080/auth/" | ||
}, | ||
{ | ||
name = "KEYCLOAK_REALM" | ||
value = var.qhub-realm-id | ||
}, | ||
{ | ||
name = "KEYCLOAK_ADMIN_USERNAME" | ||
value = "qhub-bot" | ||
}, | ||
{ | ||
name = "KEYCLOAK_ADMIN_PASSWORD" | ||
value = var.keycloak_qhub_bot_password | ||
}]) : ([]) | ||
|
||
jwt_envs = (var.jwt) ? ([{ | ||
name = "COOKIE_AUTHORIZATION_NAME" | ||
value = "${var.name}-jwt" | ||
}, | ||
{ | ||
name = "JWT_SECRET_KEY" | ||
value = random_password.qhub-jwt-secret[0].result | ||
}]) : ([]) | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering how to add this behaviour to conda-store. Awesome didn't think that logout could support a redirect allowing the user to do multiple logouts. Thanks :)