Skip to content

Commit c6f8d1c

Browse files
authored
Remove unused JWKSAllowPrivateIP from the runConfig struct (#1473)
1 parent 19c5742 commit c6f8d1c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pkg/runner/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ type RunConfig struct {
126126
// JWKSAuthTokenFile is the path to file containing auth token for JWKS/OIDC requests
127127
JWKSAuthTokenFile string `json:"jwks_auth_token_file,omitempty" yaml:"jwks_auth_token_file,omitempty"`
128128

129-
// JWKSAllowPrivateIP allows JWKS/OIDC endpoints on private IP addresses
130-
JWKSAllowPrivateIP bool `json:"jwks_allow_private_ip,omitempty" yaml:"jwks_allow_private_ip,omitempty"`
131-
132129
// Group is the name of the group this workload belongs to, if any
133130
Group string `json:"group,omitempty" yaml:"group,omitempty"`
134131

pkg/runner/config_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ func (b *RunConfigBuilder) WithOIDCConfig(
222222
IntrospectionURL: oidcIntrospectionURL,
223223
ClientID: oidcClientID,
224224
ClientSecret: oidcClientSecret,
225+
AllowPrivateIP: jwksAllowPrivateIP,
225226
}
226227
}
227228
// Set JWKS-related configuration
228229
b.config.ThvCABundle = thvCABundle
229230
b.config.JWKSAuthTokenFile = jwksAuthTokenFile
230-
b.config.JWKSAllowPrivateIP = jwksAllowPrivateIP
231231

232232
// Set ResourceURL if OIDCConfig exists or if resourceURL is not empty
233233
if b.config.OIDCConfig != nil {

0 commit comments

Comments
 (0)