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

Avoid restricting /tests/…/asset/… needlessly #6145

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Martchus
Copy link
Contributor

  • Allow unauthorized access to /tests/…/asset/… even when [auth] require_for_assets = 1 is configured because this route never returns any assets itself; it just redirects to /assets/… which will still require authorization
  • Allow making exceptions for authorized asset downloads on reverse proxy level without having to take /tests/…/asset/… into account as well
  • See https://progress.opensuse.org/issues/175902

* Allow unauthorized access to `/tests/…/asset/…` even when
  `[auth] require_for_assets = 1` is configured because this route never
  returns any assets itself; it just redirects to `/assets/…` which will
  still require authorization
* Allow making exceptions for authorized asset downloads on reverse proxy
  level without having to take `/tests/…/asset/…` into account as well
* See https://progress.opensuse.org/issues/175902
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.99%. Comparing base (81c208e) to head (2c43580).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6145   +/-   ##
=======================================
  Coverage   98.99%   98.99%           
=======================================
  Files         396      396           
  Lines       39637    39637           
=======================================
  Hits        39237    39237           
  Misses        400      400           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mergify mergify bot merged commit 0b3fff4 into os-autoinst:master Jan 29, 2025
46 checks passed
@Martchus Martchus deleted the allow-asset-redirects branch January 29, 2025 22:51
os-autoinst-bot pushed a commit to os-autoinst-bot/openQA that referenced this pull request Jan 30, 2025
commit 0b3fff4
Merge: 81c208e 2c43580
Author:     mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
AuthorDate: Wed Jan 29 19:14:24 2025 +0000
Commit:     GitHub <[email protected]>
CommitDate: Wed Jan 29 19:14:24 2025 +0000

    Merge pull request os-autoinst#6145 from Martchus/allow-asset-redirects

    Avoid restricting `/tests/…/asset/…` needlessly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants