Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

artifact_server.go return error details on 401, should not #8382

Closed
alexec opened this issue Apr 12, 2022 · 0 comments · Fixed by #8383
Closed

artifact_server.go return error details on 401, should not #8382

alexec opened this issue Apr 12, 2022 · 0 comments · Fixed by #8383
Labels
area/sso-rbac good first issue Good for newcomers type/feature Feature request type/security Security related

Comments

@alexec
Copy link
Contributor

alexec commented Apr 12, 2022

func (a *ArtifactServer) unauthorizedError(err error, w http.ResponseWriter) {
	w.WriteHeader(401)
	_, _ = w.Write([]byte(err.Error()))
}

Do not return the error.

@alexec alexec added type/feature Feature request type/security Security related good first issue Good for newcomers area/sso-rbac labels Apr 12, 2022
rohankmr414 added a commit to rohankmr414/argo-workflows that referenced this issue Apr 12, 2022
…8382

Signed-off-by: Rohan Kumar <rohankmr414@gmail.com>
alexec pushed a commit that referenced this issue Apr 12, 2022
)

Signed-off-by: Rohan Kumar <rohankmr414@gmail.com>
@sarabala1979 sarabala1979 mentioned this issue Apr 14, 2022
85 tasks
sarabala1979 pushed a commit that referenced this issue Apr 18, 2022
)

Signed-off-by: Rohan Kumar <rohankmr414@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sso-rbac good first issue Good for newcomers type/feature Feature request type/security Security related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant