Skip to content

Commit 7e4af1c

Browse files
committed
fix: always allow providers
1 parent 641d104 commit 7e4af1c

File tree

1 file changed

+4
-2
lines changed
  • pkg/ocm/provider/authorizer/json

1 file changed

+4
-2
lines changed

pkg/ocm/provider/authorizer/json/json.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,12 @@ func (a *authorizer) IsProviderAllowed(ctx context.Context, pi *ocmprovider.Prov
173173
}
174174

175175
switch {
176-
case !providerAuthorized:
177-
return errtypes.NotFound(pi.GetDomain())
178176
case !a.conf.VerifyRequestHostname:
177+
log.Info().Msg("VerifyRequestHostname is disabled. any provider is allowed")
179178
return nil
179+
case !providerAuthorized:
180+
log.Info().Msg("providerAuthorized is false")
181+
return errtypes.NotFound(pi.GetDomain())
180182
case len(pi.Services) == 0:
181183
return ErrNoIP
182184
}

0 commit comments

Comments
 (0)