File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ const (
33
33
)
34
34
35
35
type Certificates struct {
36
- // {
37
- // ClientCertificateSecretKey: {
38
- // "tls.crt": []byte
39
- // }
40
- // }
41
36
Certificates map [string ]map [string ]core.SecretBytes
42
37
43
38
// Context is the context used to control the application.
Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ func (s *Settings) Initialize() error {
179
179
180
180
certificates := certification .NewCertificates (s .Context , s .K8sClient )
181
181
182
- // q. Why is this a separate step?
183
182
err = certificates .Initialize ()
184
183
if err != nil {
185
184
return fmt .Errorf (`error occurred initializing certificates: %w` , err )
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ import (
4
4
"encoding/json"
5
5
)
6
6
7
+ // Wraps byte slices which potentially could contain
8
+ // sensitive data that should not be output to the logs.
9
+ // This will output [REDACTED] if attempts are made
10
+ // to print this type in logs, serialize to JSON, or
11
+ // otherwise convert it to a string.
12
+ // Usage: core.SecretBytes(myByteSlice)
7
13
type SecretBytes []byte
8
14
9
15
func (sb SecretBytes ) String () string {
You can’t perform that action at this time.
0 commit comments