revert: secrets as []byte instead of string

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig
2025-11-16 22:38:42 +01:00
parent aaf1889b97
commit 810f629ee8
16 changed files with 42 additions and 40 deletions
+4 -4
View File
@@ -188,7 +188,7 @@ var _ = Describe("Headers Suite", func() {
ClaimSource: &options.ClaimSource{
Claim: "user",
BasicAuthPassword: &options.SecretSource{
Value: base64.StdEncoding.EncodeToString([]byte("basic-password")),
Value: []byte(base64.StdEncoding.EncodeToString([]byte("basic-password"))),
FromEnv: "SECRET_ENV",
},
},
@@ -304,7 +304,7 @@ var _ = Describe("Headers Suite", func() {
Values: []options.HeaderValue{
{
SecretSource: &options.SecretSource{
Value: "_oauth2_proxy=ey123123123",
Value: []byte("_oauth2_proxy=ey123123123"),
},
},
},
@@ -314,7 +314,7 @@ var _ = Describe("Headers Suite", func() {
Values: []options.HeaderValue{
{
SecretSource: &options.SecretSource{
Value: "oauth_user",
Value: []byte("oauth_user"),
},
},
},
@@ -460,7 +460,7 @@ var _ = Describe("Headers Suite", func() {
ClaimSource: &options.ClaimSource{
Claim: "user",
BasicAuthPassword: &options.SecretSource{
Value: base64.StdEncoding.EncodeToString([]byte("basic-password")),
Value: []byte(base64.StdEncoding.EncodeToString([]byte("basic-password"))),
FromEnv: "SECRET_ENV",
},
},