Skip to content

Commit e29f1d3

Browse files
JorTurFermarceljk
authored andcommitted
Update envs
Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz>
1 parent 06aa8d2 commit e29f1d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/clients/workload_identity_flow.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import (
1515

1616
const (
1717
clientIDEnv = "STACKIT_SERVICE_ACCOUNT_EMAIL"
18-
FederatedTokenFileEnv = "STACKIT_FEDERATED_TOKEN_FILE" //nolint:gosec // This is not a secret, just the env variable name
19-
wifTokenEndpointEnv = "STACKIT_IDP_ENDPOINT" //nolint:gosec // This is not a secret, just the env variable name
20-
wifTokenExpirationEnv = "STACKIT_IDP_EXPIRATION_SECONDS" //nolint:gosec // This is not a secret, just the env variable name
18+
FederatedTokenFileEnv = "STACKIT_FEDERATED_TOKEN_FILE" //nolint:gosec // This is not a secret, just the env variable name
19+
wifTokenEndpointEnv = "STACKIT_IDP_TOKEN_ENDPOINT" //nolint:gosec // This is not a secret, just the env variable name
20+
wifTokenExpirationEnv = "STACKIT_IDP_TOKEN_EXPIRATION_SECONDS" //nolint:gosec // This is not a secret, just the env variable name
2121

2222
wifClientAssertionType = "urn:schwarz:params:oauth:client-assertion-type:workload-jwt"
2323
wifGrantType = "client_credentials"

core/clients/workload_identity_flow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestWorkloadIdentityFlowInit(t *testing.T) {
7070
flowConfig := &WorkloadIdentityFederationFlowConfig{}
7171
if tt.customTokenUrl != "" {
7272
if tt.customTokenUrlEnv {
73-
t.Setenv("STACKIT_IDP_ENDPOINT", tt.customTokenUrl)
73+
t.Setenv("STACKIT_IDP_TOKEN_ENDPOINT", tt.customTokenUrl)
7474
} else {
7575
flowConfig.TokenUrl = tt.customTokenUrl
7676
}

0 commit comments

Comments
 (0)