Default -ViewSecretValue to true; reject <hidden-by-infisical> placeholder
Get-InfisicalSecrets and Get-InfisicalSecret now return real secret values by default. Pass -ViewSecretValue:False to opt in to the server's hidden response. InfisicalSecretMapper detects the <hidden-by-infisical> placeholder and the secretValueHidden flag; in either case SecretValue is set to null instead of pushing the literal placeholder into a SecureString, so downstream auth/export/dictionary consumers can never silently use the placeholder as if it were a real secret.
This commit is contained in:
+2
-2
@@ -971,7 +971,7 @@ SecretPath: Current connection DefaultSecretPath or /
|
||||
Recursive: false
|
||||
IncludeImports: false
|
||||
ExpandSecretReferences: false
|
||||
ViewSecretValue: false
|
||||
ViewSecretValue: true
|
||||
```
|
||||
|
||||
## Behavior
|
||||
@@ -1040,7 +1040,7 @@ ProjectId: Current connection ProjectId
|
||||
Environment: Current connection Environment
|
||||
SecretPath: Current connection DefaultSecretPath or /
|
||||
Type: Shared
|
||||
ViewSecretValue: false
|
||||
ViewSecretValue: true
|
||||
ExpandSecretReferences: false
|
||||
IncludeImports: false
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user