add a config experimental_client_feature_flags_skip_validation #100

Closed
opened 2026-04-05 20:30:16 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @phoeagon on 2/21/2026

add a config experimental_client_feature_flags_skip_validation, that, when set, passes through all feature flags verbatim without validation.

This is useful for testing and early adopters to test it out in their docker spaces, without waiting for an official binary change.

verified that this achieves the desired behavior:
https://gist.github.com/phoeagon/6e599a40001f452837ece1f967ae8e77

phoeagon@Zhes-Mac-mini vaultwarden % cargo run --features sqlite   
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s
     Running `target/debug/vaultwarden`
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/

[2026-02-20 20:31:46.550][start][INFO] Rocket has launched from http://127.0.0.1:8000
[2026-02-20 20:32:02.571][request][INFO] GET /api
[2026-02-20 20:32:02.571][response][INFO] 404 Not Found
^C[2026-02-20 20:32:48.560][vaultwarden][INFO] Exiting Vaultwarden!
[2026-02-20 20:32:48.560][rocket::server][WARN] Received SIGINT. Requesting shutdown.
^C[2026-02-20 20:32:50.455][rocket::server][WARN] Received SIGINT. Shutdown already in progress.
[2026-02-20 20:32:50.564][vaultwarden][INFO] Vaultwarden process exited!
phoeagon@Zhes-Mac-mini vaultwarden % export EXPERIMENTAL_CLIENT_FEATURE_FLAGS=non-exist
phoeagon@Zhes-Mac-mini vaultwarden % cargo run --features sqlite
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s
     Running `target/debug/vaultwarden`
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/

Error loading config:
  Unrecognized experimental client feature flags: ["non-exist"].

Please ensure all feature flags are spelled correctly and that they are supported in this version.
Supported flags: ["inline-menu-positioning-improvements", "inline-menu-totp", "ssh-agent", "ssh-key-vault-item", "pm-25373-windows-biometrics-v2", "export-attachments", "anon-addy-self-host-alias", "simple-login-self-host-alias", "mutual-tls"]

phoeagon@Zhes-Mac-mini vaultwarden % export EXPERIMENTAL_CLIENT_FEATURE_FLAGS_SKIP_VALIDATION=true
phoeagon@Zhes-Mac-mini vaultwarden % cargo run --features sqlite
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/vaultwarden`
/--------------------------------------------------------------------\
|                        Starting Vaultwarden                        |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the   |
| official channels to report bugs/features, regardless of client.   |
| Send usage/configuration questions or feature requests to:         |
|   https://github.com/dani-garcia/vaultwarden/discussions or        |
|   https://vaultwarden.discourse.group/                             |
| Report suspected bugs/issues in the software itself at:            |
|   https://github.com/dani-garcia/vaultwarden/issues/new            |
\--------------------------------------------------------------------/

[2026-02-20 20:33:56.619][start][INFO] Rocket has launched from http://127.0.0.1:8000
*Originally created by @phoeagon on 2/21/2026* add a config experimental_client_feature_flags_skip_validation, that, when set, passes through all feature flags verbatim without validation. This is useful for testing and early adopters to test it out in their docker spaces, without waiting for an official binary change. verified that this achieves the desired behavior: https://gist.github.com/phoeagon/6e599a40001f452837ece1f967ae8e77 ``` phoeagon@Zhes-Mac-mini vaultwarden % cargo run --features sqlite Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s Running `target/debug/vaultwarden` /--------------------------------------------------------------------\ | Starting Vaultwarden | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2026-02-20 20:31:46.550][start][INFO] Rocket has launched from http://127.0.0.1:8000 [2026-02-20 20:32:02.571][request][INFO] GET /api [2026-02-20 20:32:02.571][response][INFO] 404 Not Found ^C[2026-02-20 20:32:48.560][vaultwarden][INFO] Exiting Vaultwarden! [2026-02-20 20:32:48.560][rocket::server][WARN] Received SIGINT. Requesting shutdown. ^C[2026-02-20 20:32:50.455][rocket::server][WARN] Received SIGINT. Shutdown already in progress. [2026-02-20 20:32:50.564][vaultwarden][INFO] Vaultwarden process exited! phoeagon@Zhes-Mac-mini vaultwarden % export EXPERIMENTAL_CLIENT_FEATURE_FLAGS=non-exist phoeagon@Zhes-Mac-mini vaultwarden % cargo run --features sqlite Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s Running `target/debug/vaultwarden` /--------------------------------------------------------------------\ | Starting Vaultwarden | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ Error loading config: Unrecognized experimental client feature flags: ["non-exist"]. Please ensure all feature flags are spelled correctly and that they are supported in this version. Supported flags: ["inline-menu-positioning-improvements", "inline-menu-totp", "ssh-agent", "ssh-key-vault-item", "pm-25373-windows-biometrics-v2", "export-attachments", "anon-addy-self-host-alias", "simple-login-self-host-alias", "mutual-tls"] phoeagon@Zhes-Mac-mini vaultwarden % export EXPERIMENTAL_CLIENT_FEATURE_FLAGS_SKIP_VALIDATION=true phoeagon@Zhes-Mac-mini vaultwarden % cargo run --features sqlite Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s Running `target/debug/vaultwarden` /--------------------------------------------------------------------\ | Starting Vaultwarden | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ [2026-02-20 20:33:56.619][start][INFO] Rocket has launched from http://127.0.0.1:8000 ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#100