TMAegisBeta
更多 gitlab 規則

GitLab

TMA-GITLAB-2.1.1

Ensure each pipeline has a single responsibility

低等級 2人工審核gitlab

說明

Ensure each pipeline has a single responsibility in the build process. Build pipelines generally have access to multiple secrets depending on their purposes. There are, for example, secrets of the test environment for the test phase, repository and artifact credentials for the build phase, etc. Limiting access to these credentials/secrets is therefore recommended by dividing pipeline responsibilities, as well as having a dedicated pipeline for each phase with the lowest privilege instead of a single pipeline for all. This will ensure that any potential damage caused by attacks on a workflow will be limited.

檢查方式

稽核方法: 人工審核

此項建議無法自動檢查。當您傳入 --include-manual 時,掃描結果會列出此項目並附帶這些說明。

For each pipeline, ensure it has only one responsibility in the build process.

修補方式

修補方法: 操作指南或基礎設施修補檔

Divide each multi-responsibility pipeline into multiple pipelines, each having a single responsibility with the least privilege. Additionally, create all new pipelines with a sole purpose going forward.

屬性

作業系統
不限
標籤
ci-cddevsecopsgitlab
參考資料
CIS GitLab Benchmark v1.0.1 - 2.1.1 Ensure each pipeline has a single responsibility