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.
SDK enables masking sensitive data in logs.
All task input properties with password: true values are masked in logs, replacing them with ********.
password: true
********
Masking is implemented using LogFilter from k8s.io/klog/v2.
LogFilter
k8s.io/klog/v2
Filtering is done for formatted and structured log outputs.
Examples:
klog.Infof("my password is %s", passwordProperty.Value)
my password is ********
klog.InfoS("my password is ", "password", passwordProperty.Value))
"my password is " value="********"
With plain log (without formatting and structuring) secrets will not be masked. Example:
klog.Info("my password is %s", passwordProperty.Value
my password is P@$$w0rd
Logger can be tested from everywhere where release-integration-sdk-go module is imported.
release-integration-sdk-go
It is necessary to import "k8s.io/klog/v2" (be careful and don't import "k8s.io/klog")
"k8s.io/klog/v2"
"k8s.io/klog"