Skip to content

only Intercepting/hijack is giving 403 forbidden #5806

Answered by jamieklassen
gowrisankar22 asked this question in Q&A
Discussion options

You must be logged in to vote

It's the ListContainers action that is giving you this 403. Analyzing the v6.0.0 source code, we can see that the ListContainers is wrapped by a team-scoped handler factory:

atc.ListContainers: teamHandlerFactory.HandlerFor(containerServer.ListContainers),

and the resulting wrapped handler will give a 403 if accessor.IsAuthorized returns false for the given team:

if acc.IsAuthorized(teamName) {
team, found, err := f.teamFactory.FindTeam(teamName)
if err != nil {
logger.Error("failed-to-find-team-in-db", err)
w.WriteHe…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gowrisankar22
Comment options

@gowrisankar22
Comment options

Answer selected by gowrisankar22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants