Skip to content

add telemetryUri to CSP connectSources#4502

Merged
twrichards merged 1 commit into
mainfrom
add-telemetryUri-to-CSP-connectSources
Jul 22, 2025
Merged

add telemetryUri to CSP connectSources#4502
twrichards merged 1 commit into
mainfrom
add-telemetryUri-to-CSP-connectSources

Conversation

@twrichards

@twrichards twrichards commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

What does this change?

Since we have the telemetryUri (assuming its set) available in KahunaConfig already, why not add it to the CSP connect-src list, rather than to configure that manually.

How should a reviewer test this change?

Run grid locally (perhaps with fresh config, but with links.telemetryUri specifed), inspect with the network tab and see that the connect-src part of content-security-policy header contains the telemetryUri.

✅ TESTED in TEST (removed the telemetry URL from the security.connectSources list but it still appears in the CSP when inspecting in the Network panel).

How can success be measured?

Less manual config 🎉

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@twrichards twrichards marked this pull request as ready for review July 22, 2025 11:15
@twrichards twrichards requested a review from a team as a code owner July 22, 2025 11:15

@andrew-nowak andrew-nowak 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.

neat! thanks

@prout-bot

Copy link
Copy Markdown

Seen on auth, cropper, kahuna, media-api (merged by @twrichards 9 minutes and 41 seconds ago) Please check your changes!

@prout-bot

Copy link
Copy Markdown

Seen on collections, usage (merged by @twrichards 9 minutes and 47 seconds ago) Please check your changes!

@prout-bot

Copy link
Copy Markdown

Seen on thrall, leases (merged by @twrichards 9 minutes and 51 seconds ago) Please check your changes!

@prout-bot

Copy link
Copy Markdown

Seen on metadata-editor, image-loader (merged by @twrichards 9 minutes and 56 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants