Skip to content

Improve agent payload validation #202

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
merged 19 commits into from
Jul 8, 2025

Conversation

jamesdangercarpenter
Copy link
Collaborator

@jamesdangercarpenter jamesdangercarpenter commented Jun 27, 2025

Relaxes the Package->Agent payload validation, to allow different versions of the package and agent to co-exist, as long as their payload version matches.

Validates that the NIGHTWATCH_TOKEN used to create the payload matches the one specified in the agent, to prevent attribution of events to an incorrect environment.

@jamesdangercarpenter jamesdangercarpenter changed the title Feat/use payload signature Use payload signature Jun 27, 2025
@jamesdangercarpenter jamesdangercarpenter force-pushed the feat/use-payload-signature branch from 0c05138 to 607431f Compare June 27, 2025 07:37
@jamesdangercarpenter jamesdangercarpenter marked this pull request as draft June 27, 2025 07:37
@jamesdangercarpenter jamesdangercarpenter force-pushed the feat/use-payload-signature branch 5 times, most recently from 8500b7b to 3eeb004 Compare July 3, 2025 14:43
@jamesdangercarpenter jamesdangercarpenter changed the title Use payload signature use payload signature Jul 3, 2025
@jamesdangercarpenter jamesdangercarpenter force-pushed the feat/use-payload-signature branch 5 times, most recently from 182671b to 1ebf7ef Compare July 8, 2025 05:12
@jamesdangercarpenter jamesdangercarpenter changed the title use payload signature Refactor agent payload validation Jul 8, 2025
@jamesdangercarpenter jamesdangercarpenter changed the title Refactor agent payload validation Improve agent payload validation Jul 8, 2025
@jamesdangercarpenter jamesdangercarpenter marked this pull request as ready for review July 8, 2025 05:13
@jamesdangercarpenter jamesdangercarpenter force-pushed the feat/use-payload-signature branch from 5134d18 to 8946c33 Compare July 8, 2025 06:04
@jamesdangercarpenter jamesdangercarpenter force-pushed the feat/use-payload-signature branch from 8946c33 to 3d1ac4d Compare July 8, 2025 06:07
@jamesdangercarpenter jamesdangercarpenter force-pushed the feat/use-payload-signature branch from 72f4224 to debcd26 Compare July 8, 2025 06:20
…3DA0ABA38E5C1A1F7E6FB927AC4CA67C658BC6B5ED819DDBD99B1C9B29A7B74E10D138D73FFAA03FC
@jamesdangercarpenter jamesdangercarpenter merged commit 9048f92 into 1.x Jul 8, 2025
25 checks passed
@jamesdangercarpenter jamesdangercarpenter deleted the feat/use-payload-signature branch July 8, 2025 06:36
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