Skip to content

Commit

Permalink
Add early return if configuration is missing
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
  • Loading branch information
buraksekili committed Nov 23, 2023
1 parent b1a45c6 commit bafdb01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tyk/portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ func (s *Service) BootstrapClassicPortal() error {
if s.appArgs.Tyk.Admin.Auth == "" {
s.l.Warn("Missing Admin Auth configuration may cause Authorization failures on Tyk",
"If Tyk Dashboard bootstrapping is disabled, please provide Admin Auth through environment variables")

return errors.New("failed to bootstrap classic portal; missing Tyk Admin Auth")
}

err := s.createPortalDefaultSettings()
Expand Down

0 comments on commit bafdb01

Please sign in to comment.