Repository navigation
[SDK-867] Add a campaign approval scope keyed on the Iterable server key - #44
Open
franco-zalamena-iterable wants to merge 2 commits into
Open
franco-zalamena-iterable wants to merge 2 commits into
franco-zalamena-iterable wants to merge 2 commits into
Conversation
Creating a template and a running campaign in someone's Iterable project needs its own recorded yes. The project id is only readable from a device endpoint, after this has to be asked, so the approval is scoped to a fingerprint of the server key. The key itself is never stored or printed. APPROVED=1 does not cover it, and a Firebase yes says nothing about it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The campaign scope hashed the key with shasum only, which perl-less Linux images lack, and the failure surfaced as "no Iterable server key yet". Fall back to sha256sum (same 16-hex value) and say plainly when neither exists. A blank campaign key now gets a placeholder scope, like an unchosen project, and the gate tests plant blank rows so the empty-key guard can't be dropped unnoticed. Comments and usage text now cover all four scopes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 5 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
SDK-867
This PR adds the consent that campaign mode will need.
agent approve campaignrecords a newcampaignscope keyed on a fingerprint of the Iterable server key, the first 16 hex characters of its sha256, and the key itself is never stored or printed. Nothing sends yet, the campaign send comes in a later PR.APPROVED=1doesn't cover this scope. If the key changes or isn't loaded there is no consent, so a yes given for one key doesn't carry over to another. The Firebase and campaign scopes are separate, a yes to one says nothing about the other. Fingerprinting usesshasumand falls back tosha256sum, and if neither is installedagent approve campaignsays it can't fingerprint the key instead of saying there is no key.This is the second part of SDK-867 and it is independent of #43 (G17 matching). Plugin version is bumped to 26.11.4.
Type
If this is a skill / pipeline / CI change
pnpm check:allgreen (not run locally, nothing underpipeline/changed and the manifests are covered bytests/plugin-manifests.shbelow)SKILL.md, sanity-checked the routing table against that skill'sreference/(n/a)Testing
tests/approval-gate.shhas a new Iterable campaign section with 18 checks, covering no yes on record,APPROVED=1, approving with no key, a different or swapped key, a blank-key row on disk, no SHA-256 tool,sha256summatchingshasum, and both cross-scope cases.Anything reviewers should know
Note on merge order: #43 is on 26.11.2 and #42 will need 26.11.3, so this one is numbered to go in after both.
🤖 Generated with Claude Code