-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
Terraform Format and Style 🖌
|
modules/user_auth/variables.tf
Outdated
@@ -93,3 +93,15 @@ variable "kratos_default_redirect_ui_path" { | |||
type = string | |||
default = "/dashboard" | |||
} | |||
|
|||
variable "disable_oathkeeper" { | |||
description = "To not provision Oathkeeper" |
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.
explain why rules are still used, and why this is useful
Terraform Format and Style 🖌
|
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
de8c60f
to
455f496
Compare
Terraform Format and Style 🖌
|
1 similar comment
Terraform Format and Style 🖌
|
modules/user_auth/README.md
Outdated
@@ -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 | |
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.
Mind inverting this? Maybe something like frontend_use_https
with a default of true
. The double negative of disabled=false is harder to understand.
Terraform Format and Style 🖌
|
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