-
Notifications
You must be signed in to change notification settings - Fork 0
Rework auth #1
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
Rework auth #1
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,17 +9,14 @@ url = "${DATABASE_URL}" | |||||||||||
| type = "redis" | ||||||||||||
| url = "${REDIS_URL}" | ||||||||||||
|
|
||||||||||||
| [auth.gateway] | ||||||||||||
| type = "api_key" | ||||||||||||
| header_name = "X-API-Key" | ||||||||||||
| key_prefix = "gw_" | ||||||||||||
| cache_ttl_secs = 300 # 5 minutes with Redis | ||||||||||||
| [auth.mode] | ||||||||||||
| type = "none" | ||||||||||||
|
|
||||||||||||
|
Comment on lines
+13
to
14
|
||||||||||||
| type = "none" | |
| type = "api_key" | |
| # Note: Do NOT use auth.mode.type = "none" in production. Reserve it for clearly-marked | |
| # development-only configs if you need to disable authentication locally. |
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.
This PostgreSQL HA production configuration sets
auth.mode.typeto"none", fully disabling authentication. Deploying this file as-is would expose all gateway and admin endpoints without any access control, enabling unauthorized access to data and model operations. Update the default to a secure mode like"api_key","idp", or"iap", and ensure"none"is only used in explicitly development/test configurations.