-
Notifications
You must be signed in to change notification settings - Fork 1
ENG-7204: Re-Implement Basic Auth / User Switching Logout Fix Correctly — Ship 1.0.5 #9
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
Merged
loukie-pressable
merged 11 commits into
main
from
johnluke/eng-7204-re-implement-basic-auth-user-switching-logout-fix-correctly
Sep 15, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c823c83
ENG-7204: Re-apply the User Switching logout fix as 1.0.5
loukieluke 5c6e1f4
ENG-7204: Match excluded endpoints on the request path, not the raw URI
loukieluke 66dd9b0
ENG-7204: Pin CI to the supported PHP range, and record what the init…
loukieluke d930787
ENG-7204: Refuse to waive auth for a path carrying a traversal segment
loukieluke 67adb00
ENG-7204: Gate the release on the same PHP range as pull requests
loukieluke 85f92db
ENG-7204: Match what the server executes, not what the caller requested
loukieluke 4bd4fe4
ENG-7204: Only refuse a REST endpoint when a script PRECEDES it
loukieluke cded14e
ENG-7204: Keep the first path segment on a target beginning with two …
loukieluke 6a9978f
ENG-7204: Bump the release workflow checkout to v4, don't persist its…
loukieluke d29a41e
ENG-7204: Don't treat the X-Requested-With header as AJAX (auth bypass)
loukieluke 97fd440
ENG-7204: Note the X-Requested-With bypass fix in the changelog
loukieluke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Tests | ||
|
|
||
| # Pull requests only. A push to main runs the same checks as the `check` job in | ||
| # main.yml, where they additionally gate the release; running them here too would | ||
| # just duplicate that. | ||
| on: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Lint and hook registration (PHP ${{ matrix.php }}) | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # The floor declared in readme.txt, and a current release. The runner's | ||
| # ambient PHP is whatever the image ships and tracks neither, so relying | ||
| # on it tested a version the plugin does not claim to support. | ||
| php: [ '8.1', '8.4' ] | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| # The job lints and executes PHP straight from the checked-out pull | ||
| # request, so the GITHUB_TOKEN must not be left in the local git | ||
| # config where that code could read it. | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up PHP ${{ matrix.php }} | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php }} | ||
| coverage: none | ||
|
|
||
| - name: Report PHP version | ||
| run: php -v | ||
|
|
||
| - name: Lint PHP files | ||
| run: find . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n1 -- php -l | ||
|
|
||
| - name: Hook registration regression test | ||
| run: php tests/hook-registration-test.php |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.