Skip to content

Commit

Permalink
added access hierarchy in build cache logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMHD committed Feb 24, 2024
1 parent fbef72c commit 361c2e2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pkg/auth/authenticator_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ func (a *Authenticator) buildNewWebservicesCache(
}
}

a.logger.Info("webservice access cache built successfully", "len", len(newWebservicesCache), "content", newWebservicesCache)
a.logger.Info("webservice access cache built successfully", "len", len(newWebservicesCache))

for _, entry := range newWebservicesCache {
a.logger.Info("webservice stored", "name", entry.Name, "allowedNamespaces", entry.allowedNamespacesCache)
}

return &newWebservicesCache
}

Expand Down Expand Up @@ -199,7 +204,12 @@ func (a *Authenticator) buildNewAccessTokensCache(
}
}

a.logger.Info("access token cache built successfully", "len", len(newAccessTokensCache), "content", newAccessTokensCache)
a.logger.Info("access token cache built successfully", "len", len(newAccessTokensCache))

for _, entry := range newAccessTokensCache {
a.logger.Info("webservice stored", "name", entry.Name, "allowedWebservices", entry.allowedWebservicesCache)
}

return &newAccessTokensCache
}

Expand Down

0 comments on commit 361c2e2

Please sign in to comment.