We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309c89c commit 54cfa22Copy full SHA for 54cfa22
codefresh/cfclient/context.go
@@ -70,8 +70,15 @@ func (client *Client) GetContext(name string) (*Context, error) {
70
return nil, err
71
}
72
73
+ // This is so not to break existing behavior while adding support for forbidDecrypt feature flag
74
+ // The provider used to always decrypt the contexts, hence we treat all contexts as decrypted unless forbidDecrypt is set
75
isEncryptedType := slices.Contains(encryptedContextTypes, respContext.Spec.Type)
- respContext.IsEncrypred = isEncryptedType && !forbidDecrypt
76
+
77
+ respContext.IsEncrypred = false
78
79
+ if forbidDecrypt && isEncryptedType {
80
+ respContext.IsEncrypred = true
81
+ }
82
83
return &respContext, nil
84
0 commit comments