Skip to content

test(bait): add per-canary template correctness tests#35

Merged
peg merged 1 commit into
mainfrom
test/bait-templates
May 1, 2026
Merged

test(bait): add per-canary template correctness tests#35
peg merged 1 commit into
mainfrom
test/bait-templates

Conversation

@peg

@peg peg commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Adds template validation tests for precision and high-tier canaries:

  • TestAWSProcTemplate — credential_process, role_arn, source_profile, no giveaway strings
  • TestSSHTemplate — ProxyCommand, Host, callback URL
  • TestK8sTemplate — server URL, current-context, valid structure
  • TestGitTemplate — credential section, helper line
  • TestTokenURLFormat — callback URL matches manifest token ID for all precision canaries

Add template-specific tests for awsproc, ssh, k8s, and git canary types,
plus a cross-type token URL format test. Extends testParams() to handle
the new types.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@peg
peg merged commit c6219a5 into main May 1, 2026
1 check passed
@peg
peg deleted the test/bait-templates branch May 1, 2026 19:15
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.

1 participant