Skip to content

improvement: support user-auth local dev kratos#62

Merged
davidcheung merged 2 commits intomainfrom
dev-env-to-support-user-auth
Sep 10, 2021
Merged

improvement: support user-auth local dev kratos#62
davidcheung merged 2 commits intomainfrom
dev-env-to-support-user-auth

Conversation

@davidcheung
Copy link
Copy Markdown
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
Copy Markdown

github-actions Bot commented Sep 8, 2021

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖Success! The configuration is valid.

Comment thread modules/user_auth/variables.tf Outdated
}

variable "disable_oathkeeper" {
description = "To not provision Oathkeeper"
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

github-actions Bot commented Sep 9, 2021

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖Success! The configuration is valid.

Comment thread modules/user_auth/README.md Outdated
| 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
Copy Markdown
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
Copy Markdown

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