Overview
For security purposes you may want to disable the Rerun Job with SSH feature. CircleCI allows organization admins to request that this feature be disabled on a project or organization basis.
Disabling the re-run with SSH using the CircleCI v1 API
To disable the Rerun Job with SSH feature please confirm that you are an organization admin. If you are an organization admin, you can disable this feature using the CircleCI v1 API.
curl -X PUT \
--header "Circle-Token: <token>" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{"feature_flags":{"disable-ssh": true, "disable-ssh": true}}' 'https://circleci.com/api/v1.1/project/vcs-type/org-slug/project-slug/settings'
- For the project URL under the
--data
payload, replacevcs-type/org-slug/project-slug
with the project that you wish to apply these feature flags to. - Replace the
<token>
with a Personal API Token.- This can also be authenticated using Basic authentication after encoding your Personal API Token
- The expected response from our API for a successful application of these feature flags is
""%
Note: this will only apply for future pipelines. Any previously run pipelines will still have SSH enabled
Comments
Article is closed for comments.