[FF] duo_hosted_runner_only_refusal -- refuse local runs for hosted-runner-only flows
Summary
Roll out refusing local runs for hosted-runner-only flows currently behind the duo_hosted_runner_only_refusal feature flag.
- DRI: @mbenayoun
- Team Slack channel:
#f_duo-agent-platform
Note
Process and guidance live in the docs — this issue is just the commands and a place to track the rollout. "Rolling out" means incrementally enabling the flag on GitLab.com to validate stability — it is not the same as releasing the feature, which happens when the flag is removed. Feature flag controls · Feature flag lifecycle
This flag type is gitlab_com_derisk: default_enabled is false and has no effect for this type, the flag applies to GitLab.com only, and it must be removed (hardcoded) within 2 months of merge.
What could go wrong?
A flow that's meant to run only on GitLab-hosted infrastructure gets refused when started the other way. Blast radius is limited to flows that opt in to the hosted-runner-only restriction — today, that's BLSA only. Watch for an uptick in refusal errors right after the project/group actors enabled below, and roll back if BLSA runs that should be allowed start getting refused.
Rollout
Run all production /chatops in #production and cross-post the results to #f_duo-agent-platform.
Non-production
/chatops gitlab run feature set duo_hosted_runner_only_refusal 50 --actors --dev --pre --staging --staging-ref
/chatops gitlab run feature set duo_hosted_runner_only_refusal true --dev --pre --staging --staging-refProduction — percentage rollout (wait ≥15 min between steps, watch dashboards):
/chatops gitlab run feature set duo_hosted_runner_only_refusal <percentage> --actorsBefore global rollout
- Docs updated if needed
- No breaking changes expected
- No change management issue required (internal authorization check only)
Cleanup
Remove the flag within 2 months of merge (required for this flag type) — see cleaning up. Hardcode the check and delete the YAML definition, then:
/chatops gitlab run feature delete duo_hosted_runner_only_refusal --dev --pre --staging --staging-ref --productionRollback
/chatops gitlab run feature set duo_hosted_runner_only_refusal false # production
/chatops gitlab run feature set duo_hosted_runner_only_refusal false --dev --pre --staging --staging-ref # non-production