Skip to content

Allow anonymous access to public Conan packages

Steve Mokris requested to merge (removed):294482-conan-anonymous into master

What does this MR do?

For Conan API endpoints:

  • Allow access to ping endpoint without a token
  • Allow access to download endpoints without a token, if the project is public
  • Instead of throwing UnauthorizedError when no token is provided, continue with anonymous privileges
  • Update tests to reflect the above changes
  • Add test for downloading without a token

See #294482 (closed) for details.

Screenshots

(no visual changes)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #294482 (closed)

Edited by Steve Mokris

Merge request reports