Repository navigation
github_runner::register: wait 600 s for the SSM-delivered registration token (SEC-46) - #309
Merged
Merged
Conversation
On the ssm path the receiver waited 300 seconds, counted from when Puppet reaches the exec. Puppet can get there before the registration Lambda has asked the instance for its key, and the Lambda's worst case from the launch hook firing to delivery is about 490 seconds, so the receiver could give up first, fail the Puppet run, and leave the instance to be replaced after the bootstrap hook's 1200 seconds. Wait 600 seconds, matching the window the Lambda enforces from the hook firing, and raise the exec timeout to 720 to cover the wait plus config.sh, still inside the 1200-second hook. Update the class doc and the comment that called 300 the toolkit's own default; the toolkit's default stays 300. The secret path is unchanged. Same change in all three trees. Refs #308 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GsX4wbUDt43kCwZnrCgRJQ
One version bump for the token-wait change, in the format `make bumpversion` produces. Refs #308 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GsX4wbUDt43kCwZnrCgRJQ
Member
Author
|
Ready for review: 3cd3398 First round. The change from #308 in all three trees: Generated by Claude Code |
Member
Author
|
Approved 3cd3398 Checked at this commit, against #308 ("Suggested solution" and "Done when") and the repository's CLAUDE.md:
Decisions let stand:
Generated by Claude Code |
infrahouse8
approved these changes
Dec 3, 2026
akuzminsky
added a commit
to infrahouse/terraform-aws-actions-runner
that referenced
this pull request
Dec 3, 2026
….1.0-1build339 (SEC-46) build339 (infrahouse/puppet-code#309) waits 600 seconds for the SSM-delivered token, as Step 1 asks; build338 takes the SSM path but waits only 300. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #308
What changed and why
On the
ssmpath,profile::github_runner::registerwaited 300 seconds for the registration token, counted from when Puppet reaches theregister_runnerexec. Puppet can reach the exec before the registration Lambda of terraform-aws-actions-runner has asked the instance for its key, and the Lambda's worst case from the launch hook firing to delivery is about 490 seconds. In that case the receiver gives up first, fails the Puppet run, and the instance sits until the bootstrap hook's 1200 seconds run out.In
modules/profile/manifests/github_runner/register.pp, in all three trees (modules/,environments/sandbox/modules/,environments/development/modules/):$token_wait = 300→$token_wait = 600, matching the 600 seconds the Lambda enforces from the hook firing (RECEIVER_WAIT_SECONDSin terraform-aws-actions-runner#123), after which it mints nothing and abandons the instance.register_runnerexec on thessmpath:timeout => 420→timeout => 720, the wait plusconfig.sh, still inside the bootstrap hook's 1200 seconds.$token_waitno longer calls it the toolkit's own default; it says the toolkit's default is 300 and why this one is longer.secretpath is unchanged.debian/changelogbumped once, to0.1.0-1build339.In the usual case nothing changes: the token is already on the instance when Puppet reaches the exec, and the toolkit picks it up at once. 600 is how long it waits before giving up, not a delay.
How it was tested
register.ppare identical (diffshows no differences).puppet-lint --fail-on-warnings(puppet-lint 5.1.1) passes on the three changed files.puppet parser validate(Puppet 8.10.0) passes on the three changed files..debon this PR.Note: running
puppet-lint --fail-on-warningsover whole module directories with puppet-lint 5.1.1 reportsspace_before_arrowwarnings inbase.pp,elastic/prometheus.ppandteleport/packages.pp. Those files are not touched here and the warnings are onmainas well; this PR leaves them alone.Decisions the issue left open
$token_waitnames the toolkit's default (300) and points to the class doc for the reason, instead of repeating the reason there.make bumpversion(dch -R) produces (0.1.0-1build339,root <packager@infrahouse.com>), in its own commit, so there is one bump for the PR.Generated by Claude Code