Skip to content

Accept SSO JWT audiences with or without a trailing slash - #1837

Merged
jedisct1 merged 3 commits into
mainfrom
fdenis/jwthack
Jul 1, 2026
Merged

jedisct1 merged 3 commits into
mainfrom
fdenis/jwthack

Conversation

@jedisct1

@jedisct1 jedisct1 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Change summary

Allow SSO JWT validation to accept Fastly API endpoint values with or without a single trailing slash.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests
    for the same update/change?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

Test run:

go test ./pkg/auth

User Impact

Avoid JWT tokens with an inconsistent identifier to be rejected.

Are there any considerations that need to be addressed for release?

No breaking changes. This is a compatibility fix for JWT claim validation.

@jedisct1
jedisct1 requested a review from a team as a code owner July 1, 2026 13:01
@jedisct1
jedisct1 requested a review from rcaril July 1, 2026 13:01

@rcaril rcaril left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. However, I can't seem to find the associated test you referenced. Do we have coverage for this scenario?

@jedisct1

jedisct1 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

This looks good. However, I can't seem to find the associated test you referenced. Do we have coverage for this scenario?

Added.

@rcaril rcaril left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jedisct1
jedisct1 merged commit fd418be into main Jul 1, 2026
14 checks passed
@jedisct1
jedisct1 deleted the fdenis/jwthack branch July 1, 2026 16:03
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
fastly 15.4.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## [v15.4.0](https://github.com/fastly/cli/releases/tag/v15.4.0) (2026-07-08)

### Bug Fixes:

- fix(auth): accept SSO JWT audiences with or without a trailing slash when validating the Fastly API endpoint. ([#1837](fastly/cli#1837))
- feat(compute): add `install-tools` command to pre-install the Viceroy binary ([#1833](fastly/cli#1833))

### Enhancements:
- feat(ngwaf/timeseries): add support for account and workspace times series commands ([#1823](fastly/cli#1823))

### Dependencies:
- build(deps): `github.com/fastly/go-fastly/v15` from 15.0.3 to 16 ([#1841](fastly/cli#1841))
- build(deps): `golang.org/x/sys` from 0.46.0 to 0.47.0 ([#1843](fastly/cli#1843))
- build(deps): `golang.org/x/term` from 0.44.0 to 0.45.0 ([#1843](fastly/cli#1843))
- build(deps): `golang.org/x/mod` from 0.37.0 to 0.38.0 ([#1843](fastly/cli#1843))
- build(deps): `golang.org/x/sync` from 0.21.0 to 0.22.0 ([#1843](fastly/cli#1843))
- build(deps): `golang.org/x/text` from 0.38.0 to 0.40.0 ([#1843](fastly/cli#1843))
- build(deps): `github.com/fastly/go-fastly/v16` from 16.0.0 to 16.0.1 ([#1843](fastly/cli#1843))
- build(deps): `github.com/fastly/go-fastly/v15` from 15.0.3 to 16 ([#1841](https://github.com/fastly/cli/pull/1841))</pre>
  <p>View the full release notes at <a href="https://github.com/fastly/cli/releases/tag/v15.4.0">https://github.com/fastly/cli/releases/tag/v15.4.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!13794
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.

2 participants