File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ VAULT_HOST_URL="https://localhost"
27
27
# Used to match a remote server configuration.
28
28
REMOTE_VAULT_CONFIG_MATCH = " https://localhost:8443/api/config"
29
29
30
+ # (Optional) Indicate whether mock ciphers used in live site tests should be included in vault seeding
31
+ # INCLUDE_PUBLIC_PAGE_CIPHERS="true"
32
+
30
33
# (Optional) Specify the root directory filename for the Bitwarden vault JSON import
31
34
# you'd like to use (e.g. "vault.json")
32
35
# Mock data generation tool: https://www.passwordvaultgenerator.com/
Original file line number Diff line number Diff line change @@ -68,7 +68,13 @@ class VaultSeeder {
68
68
vaultItems . forEach ( ( item ) => ( existingVaultItems [ item . name ] = item ) ) ;
69
69
}
70
70
71
- const allCiphers = [ ...localPageCiphers , ...publicPageCiphers ] ;
71
+ const includePublicPageCiphers =
72
+ process . env . INCLUDE_PUBLIC_PAGE_CIPHERS === "true" ;
73
+
74
+ const allCiphers = [
75
+ ...localPageCiphers ,
76
+ ...( includePublicPageCiphers ? publicPageCiphers : [ ] ) ,
77
+ ] ;
72
78
73
79
for ( let index = 0 ; index < allCiphers . length ; index ++ ) {
74
80
const pageCipher = allCiphers [ index ] ;
You can’t perform that action at this time.
0 commit comments