IAM으로 액세스 제어

이 주제에서는 Cloud KMS 리소스에 대한 액세스를 관리하는 방법을 보여줍니다.

개요

키 및 키링과 같은 Cloud KMS 리소스에 대한 액세스를 관리하려면 Identity and Access Management(IAM) 역할을 부여해야 합니다. 키 순환 또는 데이터 암호화와 같이 특정한 암호화 작업을 수행하는 기능을 부여하거나 제한할 수 있습니다. 다음에 대해 IAM 역할을 부여할 수 있습니다.

  • 키(직접 역할 부여)
  • 해당 키링의 모든 키로 상속되는 키링
  • A Google Cloud 프로젝트, 프로젝트의 모든 키로 상속되는
  • Google Cloud 폴더 내 모든 프로젝트의 모든 키로 상속되는 폴더
  • 조직의 폴더에 있는 모든 키로 상속되는 Google Cloud 조직

Cloud KMS 작업과 IAM 역할 및 권한의 전체 목록은 권한 및 역할을 참조하세요. Cloud KMS 리소스의 전체 목록과 각 리소스 간의 관계는 Cloud KMS 리소스를 참조하세요.

시작하기 전에

이 작업을 완료하려면 Google Cloud 프로젝트에서 Cloud KMS 리소스를 관리할 수 있는 권한이 필요합니다. Cloud KMS 관리자 역할(roles/cloudkms.admin)에는 필요한 권한이 포함됩니다.

  1. 계정에 로그인합니다. Google Cloud 를 처음 사용하는 경우 Google Cloud, 계정을 만들어 실제 시나리오에서 제품이 어떻게 작동하는지 평가해 보세요. 신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the required API.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the API

  5. Google Cloud CLI를 설치합니다.

  6. 외부 ID 공급업체(IdP)를 사용하는 경우 먼저 제휴 ID로 gcloud CLI에 로그인해야 합니다.

  7. gcloud CLI를 초기화하려면, 다음 명령어를 실행합니다.

    gcloud init
  8. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  9. Verify that billing is enabled for your Google Cloud project.

  10. Enable the required API.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the API

  11. Google Cloud CLI를 설치합니다.

  12. 외부 ID 공급업체(IdP)를 사용하는 경우 먼저 제휴 ID로 gcloud CLI에 로그인해야 합니다.

  13. gcloud CLI를 초기화하려면, 다음 명령어를 실행합니다.

    gcloud init