1
0
mirror of https://github.com/bitwarden/server synced 2026-02-11 14:03:24 +00:00

Fixes from Claude Code review

This commit is contained in:
Mick Letofsky
2026-01-26 16:02:34 +01:00
parent c997f87333
commit f56d424dcc
2 changed files with 8 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ public class Program
string domain,
[Option('c', "ciphers", Description = "Number of login ciphers to create")]
int ciphers = 0,
[Option('s', "structure", Description = "Org structure for collections: Traditional, Spotify, or Modern")]
[Option('o', "org-structure", Description = "Org structure for collections: Traditional, Spotify, or Modern")]
string? structure = null
)
{

View File

@@ -34,6 +34,9 @@ DbSeeder.exe organization -n seeded -u 10000 -d large.test
# Generate an organization with 5 users and 100 encrypted ciphers
DbSeeder.exe organization -n TestOrg -u 5 -d test.com -c 100
# Generate with Spotify-style collections (tribes, chapters, guilds)
DbSeeder.exe organization -n TestOrg -u 10 -d test.com -c 50 -o Spotify
# Generate a small test organization with ciphers for manual testing
DbSeeder.exe organization -n DevOrg -u 2 -d dev.local -c 10
```
@@ -46,15 +49,16 @@ DbSeeder.exe organization -n DevOrg -u 2 -d dev.local -c 10
| `-u, --users` | Number of member users to create |
| `-d, --domain` | Email domain (e.g., test.com creates owner@test.com) |
| `-c, --ciphers` | Number of encrypted ciphers to create (optional) |
| `-s, --status` | User status: Confirmed (default), Invited, Accepted, Revoked |
| `-o, --org-structure` | Collection structure: Traditional, Spotify, or Modern (optional) |
### Notes
- All users are created with the password `asdfasdfasdf`
- The owner account is always `owner@{domain}` with Confirmed status
- Member accounts are `user0@{domain}`, `user1@{domain}`, etc.
- When ciphers are created, a "Default Collection" is automatically created and all users are granted access
- Ciphers are encrypted using dynamically generated organization keys
- Without `--org-structure`, a single "Default Collection" is created
- With `--org-structure`, collections are created from org model (e.g., Spotify creates tribes, chapters, guilds)
- Ciphers are encrypted and distributed across collections using dynamically generated organization keys
## Dependencies