mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description 1. Fixing the salt length used when prehashing passwords when creating secondary users. 2. Adding support for forAllDBs 3. Added a JS test 4. Disabled JS test for RUST and MultiCoordinator scenarios Work Item to add support for multi coordinator scenarios (https://msdata.visualstudio.com/CosmosDB/_workitems/edit/3575602) ---- #### AI description (iteration 1) #### PR Classification Bug fix to ensure the default salt length does not exceed the maximum allowed length. #### PR Summary This pull request fixes the default salt length validation and introduces a new configuration variable for it. - `src/commands/users.c`: Added validation for default salt length and implemented `pg_be_scram_build_secret` function. - `src/helio_api_init.c`: Defined a new configuration variable `helio_api.scramDefaultSaltLen` and set its default value.