Skip to content

Commit

Permalink
Ignore setting OCSP env if already set (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
concaf authored Dec 4, 2024
1 parent 171ddf2 commit e8d7ff2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions connection_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@ func populateChunkDownloader(

func setupOCSPEnvVars(ctx context.Context, host string) error {
host = strings.ToLower(host)

// only set OCSP envs if not already set
if val, set := os.LookupEnv(cacheServerURLEnv); set {
logger.WithContext(ctx).Debugf("OCSP Cache Server already set by user for %v: %v\n", host, val)
return nil
}
if isPrivateLink(host) {
if err := setupOCSPPrivatelink(ctx, host); err != nil {
return err
Expand Down

0 comments on commit e8d7ff2

Please sign in to comment.