galasa-dev / projectmanagement

Project Management repo for Issues and ZenHub
7 stars 3 forks source link

Validate Dex discovery endpoints and auth request payloads in the API server #1894

Closed eamansour closed 5 days ago

eamansour commented 3 weeks ago

Story

As a Galasa maintainer, I want to validate that the OpenID Connect endpoints returned by Dex are on the Galasa Dex server and that auth request payloads are valid, so that requests are not sent to malicious URLs.

Background

Vulnerability scans have highlighted some areas that do not validate the OpenID Connect endpoints returned by Dex in the OidcProvider class and that auth request payloads also aren't being validated.

These should be resolved by validating that the returned endpoints are valid URLs and are served on the Galasa Dex server.

Tasks