-
Notifications
You must be signed in to change notification settings - Fork 2
fix issue with hydra no openning up enrichment paths #601
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
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -53,6 +53,27 @@ oauth2: | |||||
| - username | ||||||
| - service_name | ||||||
| mirror_top_level_claims: false | ||||||
| hashers: | ||||||
| bcrypt: | ||||||
| cost: 10 | ||||||
| pbkdf2: | ||||||
| iterations: 1 | ||||||
| algorithm: pbkdf2 | ||||||
| pkce: | ||||||
| enforced_for_public_clients: true | ||||||
| enforced: true | ||||||
| client_credentials: | ||||||
| default_grant_allowed_scope: false | ||||||
| grant: | ||||||
| jwt: | ||||||
| iat_optional: false | ||||||
| jti_optional: false | ||||||
| max_ttl: 720h | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
|
||||||
| refresh_token: | ||||||
| grace_period: 1h | ||||||
| refresh_token_hook: http://127.0.0.1:3000/webhook/enrich/refresh-token | ||||||
| token_hook: http://127.0.0.1:3000/webhook/enrich/token | ||||||
| expose_internal_errors: true | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Setting |
||||||
|
|
||||||
| secrets: | ||||||
| system: | ||||||
|
|
||||||
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.
The number of iterations for PBKDF2 is set to 1. This is critically low and provides almost no resistance to brute-force attacks, making the hashed values insecure. While this is for a test environment, using such a weak setting is a dangerous practice. It is highly recommended to use a much higher iteration count. For example, OWASP recommends values in the hundreds of thousands for production. For testing, a value like
10000would offer a better balance between security and performance.