feat: add Flexible Password Policy support for database connections#1362
Merged
ankita10119 merged 2 commits intomasterfrom Apr 22, 2026
Merged
feat: add Flexible Password Policy support for database connections#1362ankita10119 merged 2 commits intomasterfrom
ankita10119 merged 2 commits intomasterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1362 +/- ##
==========================================
+ Coverage 80.11% 80.15% +0.04%
==========================================
Files 152 152
Lines 6280 6319 +39
Branches 1314 1328 +14
==========================================
+ Hits 5031 5065 +34
- Misses 704 708 +4
- Partials 545 546 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kushalshit27
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
Adds first-class deploy-cli support for the Flexible Password PolicyManagement API spec (
password_options) and the newsignup_behaviorfield on database connections.Schema additions (
databases.ts)options.authentication_methods.password.signup_behavior- new enum field ("allow"|"block") alongside the existingapi_behavioroptions.password_options- new block covering:complexity:min_length,character_types,character_type_rule,identical_characters,sequential_characters,max_length_exceededprofile_data:active,blocked_fieldshistory:active,sizedictionary:active,default,customPre-deploy validation (
validatePasswordOptions)password_optionsand any legacy policy field (passwordPolicy,password_complexity_options,password_history,password_no_personal_info,password_dictionary) are present in the same config - the Management API rejects this combinationcharacter_type_ruleis"three_of_four"without all four character types specifiedprofile_data.blocked_fieldsexceeds 12 items or any single item exceeds 100 characterssignup_behavior/api_behaviorco-dependency rule added tovalidatePasswordlessSettings(wired in when feature reaches GA, consistent with existing PR:feat: add support for passwordless authentication methods on database connections EA #1282 gate)Safe update path (
getClientFNupdate)The databases handler fetches existing connection state and shallow-merges it with the desired payload before every PATCH. Two new pre-merge guards:
password_options, and vice versa), preventing the 400 the API returns when both groups appear in the same request bodysignup_behavior/api_behaviormerge-time check: computes the effectiveapi_behaviorfrom the merged result (payload takes precedence over existing tenant value) and throws a clear, actionable error ifsignup_behavior: "block"would be set withoutapi_behavior: "optional", rather than surfacing a cryptic API 400📚 References
🔬 Testing
📝 Checklist