Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the staging deployment workflow to ship from the same on-prem, self-hosted runner path used for production, enabling staging to be reached over the VPN and removing the need for public SSH exposure on the staging host.
Changes:
- Switch
deploy.yml’sship_runs_onto["self-hosted","linux"](matchingdeploy-release.yml) so staging shipping runs on the on-prem runner. - Clarify in the workflow header comment that
DEPLOY_HOSTmust be the target host’s private address.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aterga
force-pushed
the
claude/staging-onprem-runner-d74205
branch
from
July 27, 2026 16:47
84724ae to
2dd2e28
Compare
aterga
force-pushed
the
claude/mcp-production-deployment-d74205
branch
from
July 27, 2026 16:48
285cd16 to
b2c87f9
Compare
9 of 12 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.
Stacked on #81 — base retargets to
mainautomatically once that merges. The diff here is one workflow input plus a comment.Summary
Staging is the only reason any host in this VPC needs SSH open to the public internet. Its deploy runs on GitHub-hosted runners, which can reach it no other way, so
imcp2-webcarries22/tcpfrom0.0.0.0/0and::/0— and because that security group is shared, production would inherit the same exposure.Restricting port 22 to GitHub's ranges isn't a viable alternative:
sg-0f05ee152afcc8d9dholds GitHub's web/API prefixes, but Actions runners egress from Azure ranges numbering in the thousands and rotating, well past the 60-rule-per-group limit.Staging sits in the same VPN-propagated subnet as production, so the on-prem runner reaches it on its private address exactly as it reaches production. Moving it there means both environments ship the same way and both hosts can drop inbound 22 entirely, leaving 80 and 443 as the only publicly reachable ports anywhere.
Splitting this out of #81 deliberately: merging #81 exercises the reusable-workflow refactor while still on hosted runners, and merging this is the first real test of the on-prem ship path — one variable per merge.
Related issues
None.
Changes
deploy.yml:ship_runs_on→ the self-hosted runner labels, matchingdeploy-release.yml.DEPLOY_HOSTmust now be the host's private address.Testing
deploy.ymlparses as YAML.cargo build/cargo test/clippy— no Rust source changed.npm test --prefix monitoring/mcp-status— no dashboard code changed; the workflow runs it anyway.Checklist
Required before merge
Update
DEPLOY_HOSTto staging's private address first. The ship job will run inside the VPN, so the current public value is unreachable from there and the first run after merge fails at the SSH step.Merge order: #81, confirm staging deploys green on hosted runners, update the secret, then merge this and confirm staging deploys green from on-prem. Once that passes,
22/tcpcan be revoked from0.0.0.0/0and::/0onimcp2-weband replaced with an SSH group scoped to the runner's range.Generated by Claude Code