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

improvement: support user-auth local dev kratos #62

Merged
merged 2 commits into from
Sep 10, 2021

Conversation

davidcheung
Copy link
Contributor

kratos redirect URLs are driven by config and are static,
this will allow spining up another instance of user_auth(kratos) without
oathkeeper, and allow the cookies to be sent cross-site
127.0.0.1:3000 -> backend on the cloud (for dev-env)
allow modifying scheme allowing dev-instance of kratos with localhost

Description

Please explain the changes you made here and link to any relevant issues.

Checklist

@davidcheung davidcheung requested a review from a team as a code owner September 8, 2021 23:54
@github-actions
Copy link

github-actions bot commented Sep 8, 2021

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖Success! The configuration is valid.

@@ -93,3 +93,15 @@ variable "kratos_default_redirect_ui_path" {
type = string
default = "/dashboard"
}

variable "disable_oathkeeper" {
description = "To not provision Oathkeeper"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

explain why rules are still used, and why this is useful

@github-actions
Copy link

github-actions bot commented Sep 9, 2021

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖Success! The configuration is valid.

kratos redirect URLs are driven by config and are static,
this will allow spining up another instance of user_auth(kratos) without
oathkeeper, and allow the cookies to be sent cross-site
127.0.0.1:3000 -> backend on the cloud (for dev-env)
allow modifying scheme allowing dev-instance of kratos with localhost
@davidcheung davidcheung force-pushed the dev-env-to-support-user-auth branch from de8c60f to 455f496 Compare September 9, 2021 19:49
@github-actions
Copy link

github-actions bot commented Sep 9, 2021

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖Success! The configuration is valid.

1 similar comment
@github-actions
Copy link

github-actions bot commented Sep 9, 2021

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖Success! The configuration is valid.

@@ -35,6 +35,8 @@ No requirements.
| backend\_service\_domain | Domain of the backend service | `string` | n/a | yes |
| cookie\_signing\_secret\_key | Default secret key for signing cookies | `string` | n/a | yes |
| create\_namespace | Whether to create the auth namespace(defaults to true), otherwise just references the namespace | `bool` | `true` | no |
| disable\_frontend\_https | Whether frontend URLs should be https, unless your developing locally you should leave the default as is. | `bool` | `false` | no |
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind inverting this? Maybe something like frontend_use_https with a default of true. The double negative of disabled=false is harder to understand.

@github-actions
Copy link

github-actions bot commented Sep 9, 2021

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖Success! The configuration is valid.

@davidcheung davidcheung merged commit 2e41f7b into main Sep 10, 2021
@davidcheung davidcheung deleted the dev-env-to-support-user-auth branch September 10, 2021 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants