Menggunakan kebijakan organisasi kustom

Halaman ini menunjukkan cara menggunakan batasan kustom Layanan Kebijakan Organisasi untuk membatasi operasi tertentu pada resource Google Cloud berikut:

  • cloudbuild.googleapis.com/BitbucketServerConfig
  • cloudbuild.googleapis.com/Build
  • cloudbuild.googleapis.com/BuildTrigger
  • cloudbuild.googleapis.com/Connection
  • cloudbuild.googleapis.com/GithubEnterpriseConfig
  • cloudbuild.googleapis.com/Repository
  • cloudbuild.googleapis.com/WorkerPool

Untuk mempelajari lebih lanjut Kebijakan Organisasi, lihat Kebijakan organisasi kustom.

Tentang batasan dan kebijakan organisasi

Layanan Kebijakan Organisasi Google Cloud memberi Anda kontrol terpusat dan terprogram atas resource organisasi Anda. Sebagai administrator kebijakan organisasi, Anda dapat menentukan kebijakan organisasi, yang merupakan serangkaian batasan yang disebut batasan yang berlaku untuk resourceGoogle Cloud dan turunan dari resource tersebut dalam hierarki resourceGoogle Cloud . Anda dapat menerapkan kebijakan organisasi di level organisasi, folder, atau project.

Kebijakan Organisasi menyediakan batasan terkelola bawaan untuk berbagai layanan Google Cloud . Namun, jika menginginkan kontrol yang lebih terperinci dan dapat disesuaikan atas kolom tertentu yang dibatasi dalam kebijakan organisasi, Anda juga dapat membuat batasan kustom dan menggunakan batasan kustom tersebut dalam kebijakan organisasi.

Pewarisan kebijakan

Secara default, kebijakan organisasi diwarisi oleh turunan resource tempat Anda menerapkan kebijakan tersebut. Misalnya, jika Anda menerapkan kebijakan pada folder, Google Cloud akan menerapkan kebijakan tersebut pada semua project di folder tersebut. Untuk mempelajari lebih lanjut perilaku ini dan cara mengubahnya, lihat Aturan evaluasi hierarki.

Sebelum memulai

  1. Login ke akun Google Cloud Anda. Jika Anda baru menggunakan Google Cloud, buat akun untuk mengevaluasi performa produk kami dalam skenario dunia nyata. Pelanggan baru juga mendapatkan kredit gratis senilai $300 untuk menjalankan, menguji, dan men-deploy workload.
  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. Instal Google Cloud CLI.

  5. Jika Anda menggunakan penyedia identitas (IdP) eksternal, Anda harus login ke gcloud CLI dengan identitas gabungan Anda terlebih dahulu.

  6. Untuk melakukan inisialisasi gcloud CLI, jalankan perintah berikut:

    gcloud init
  7. 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

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

  9. Instal Google Cloud CLI.

  10. Jika Anda menggunakan penyedia identitas (IdP) eksternal, Anda harus login ke gcloud CLI dengan identitas gabungan Anda terlebih dahulu.

  11. Untuk melakukan inisialisasi gcloud CLI, jalankan perintah berikut:

    gcloud init
  12. Pastikan Anda mengetahui ID organisasi Anda.

Peran yang diperlukan

Guna mendapatkan izin yang diperlukan untuk mengelola kebijakan organisasi kustom, minta administrator untuk memberi Anda peran IAM Organization Policy Administrator (roles/orgpolicy.policyAdmin) di resource organisasi. Untuk mengetahui informasi selengkapnya tentang pemberian peran, lihat Mengelola akses ke project, folder, dan organisasi.

Anda mungkin juga bisa mendapatkan izin yang diperlukan melalui peran kustom atau peran bawaan lainnya.

Menyiapkan batasan kustom

Batasan kustom ditentukan dalam file YAML oleh resource, metode, kondisi, dan tindakan yang didukung oleh layanan tempat Anda menerapkan kebijakan organisasi. Kondisi untuk batasan kustom Anda ditentukan menggunakan Common Expression Language (CEL). Untuk mengetahui informasi selengkapnya tentang cara membuat kondisi dalam batasan kustom menggunakan CEL, lihat bagian CEL tentang Membuat dan mengelola batasan kustom.

Konsol

Untuk membuat batasan kustom, lakukan hal-hal berikut:

  1. Di konsol Google Cloud , buka halaman Organization policies.

    Buka Organization policies

  2. Dari pemilih project, pilih project yang ingin Anda tetapkan kebijakan organisasinya.
  3. Klik Custom constraint.
  4. Di kotak Display name, masukkan nama yang dapat dibaca manusia untuk batasan. Nama ini digunakan dalam pesan error dan dapat digunakan untuk identifikasi dan proses debug. Jangan menggunakan informasi identitas pribadi (PII) atau data sensitif dalam nama tampilan karena nama ini dapat terekspos dalam pesan error. Kolom ini dapat berisi hingga 200 karakter.
  5. Di kotak Constraint ID, masukkan ID yang diinginkan untuk batasan kustom baru. Batasan kustom hanya boleh berisi huruf (termasuk huruf besar dan huruf kecil) atau angka, misalnya custom.enableCloudBuildPubsubTrigger. Kolom ini dapat berisi hingga 70 karakter, tidak termasuk imbuhan (custom.), misalnya, organizations/123456789/customConstraints/custom. Jangan sertakan PII atau data sensitif dalam ID batasan Anda, karena dapat terekspos dalam pesan error.
  6. Di kotak Description, masukkan deskripsi batasan yang dapat dibaca manusia. Deskripsi ini digunakan sebagai pesan error saat kebijakan dilanggar. Sertakan detail tentang alasan pelanggaran kebijakan dapat terjadi dan cara menyelesaikan pelanggaran kebijakan tersebut. Jangan sertakan PII atau data sensitif dalam deskripsi Anda, karena dapat terekspos dalam pesan error. Kolom ini dapat berisi hingga 2.000 karakter.
  7. Di kotak Resource type, pilih nama resource REST Google Cloud yang berisi objek dan kolom yang ingin Anda batasi—misalnya, container.googleapis.com/NodePool. Sebagian besar jenis resource mendukung hingga 20 batasan kustom. Jika Anda mencoba membuat lebih banyak batasan kustom, operasi akan gagal.
  8. Di bagian Enforcement method, pilih apakah akan menerapkan batasan pada metode CREATE REST atau pada metode CREATE dan UPDATE REST. Jika Anda menerapkan batasan dengan metode UPDATE pada resource yang melanggar batasan, perubahan pada resource tersebut akan diblokir oleh kebijakan organisasi kecuali jika perubahan tersebut menyelesaikan pelanggaran.
  9. Untuk melihat metode yang didukung untuk setiap layanan, temukan layanan di Layanan yang mendukung batasan kustom.

  10. Untuk menentukan kondisi, klik Edit condition.
    1. Di panel Add condition, buat kondisi CEL yang mengacu pada resource layanan yang didukung, misalnya resource.management.autoUpgrade == false. Kolom ini dapat berisi hingga 1.000 karakter. Untuk mengetahui detail tentang penggunaan CEL, lihat Common Expression Language. Untuk mengetahui informasi selengkapnya tentang resource layanan yang dapat Anda gunakan dalam batasan kustom, lihat Layanan yang didukung batasan kustom.
    2. Klik Save.
  11. Di bagian Action, pilih apakah akan mengizinkan atau menolak metode yang dievaluasi jika kondisi di atas terpenuhi.
  12. Tindakan penolakan berarti operasi untuk membuat atau memperbarui resource diblokir jika kondisi bernilai benar.

    Tindakan izinkan berarti operasi untuk membuat atau memperbarui resource hanya diizinkan jika kondisi bernilai benar. Setiap kasus lainnya, kecuali yang tercantum secara eksplisit dalam kondisi, akan diblokir.

  13. Klik Create constraint.
  14. Setelah Anda memasukkan nilai ke setiap kolom, konfigurasi YAML yang setara untuk batasan kustom ini akan muncul di sebelah kanan.

gcloud

  1. Untuk membuat batasan kustom, buat file YAML menggunakan format berikut:
  2. name: organizations/ORGANIZATION_ID/customConstraints/CONSTRAINT_NAME
    resourceTypes: RESOURCE_NAME
    methodTypes:
      - CREATE
    - UPDATE
    condition: "CONDITION" actionType: ACTION displayName: DISPLAY_NAME description: DESCRIPTION

    Ganti kode berikut:

    • ORGANIZATION_ID: ID organisasi Anda, seperti 123456789.
    • CONSTRAINT_NAME: nama yang Anda inginkan untuk batasan kustom baru Anda. Batasan kustom hanya boleh berisi huruf (termasuk huruf besar dan huruf kecil) atau angka, misalnya, custom.enableCloudBuildPubsubTrigger. Kolom ini dapat berisi hingga 70 karakter, tidak termasuk awalan (custom.)— misalnya, organizations/123456789/customConstraints/custom. Jangan sertakan PII atau data sensitif dalam ID batasan Anda, karena dapat terekspos dalam pesan error.
    • RESOURCE_NAME: nama resource Google Cloudyang sepenuhnya memenuhi syarat, yang berisi objek dan kolom yang ingin Anda batasi. Contoh, cloudbuild.googleapis.com/BuildTrigger. Sebagian besar jenis resource mendukung hingga 20 batasan kustom. Jika Anda mencoba membuat lebih banyak batasan kustom, operasi akan gagal.
    • methodTypes: metode REST yang menerapkan batasan. Dapat berupa CREATE atau CREATE dan UPDATE. Jika Anda menerapkan batasan dengan metode UPDATE pada resource yang melanggar batasan, perubahan pada resource tersebut akan diblokir oleh kebijakan organisasi kecuali jika perubahan tersebut menyelesaikan pelanggaran.
    • Untuk melihat metode yang didukung untuk setiap layanan, temukan layanan di Layanan yang mendukung batasan kustom.

    • CONDITION: Kondisi CEL yang ditulis berdasarkan representasi resource layanan yang didukung. Kolom ini dapat berisi hingga 1.000 karakter. Contoh, resource.pubsubConfig != null && resource.pubsubConfig.topic.contains('cloud-build').
    • Untuk mengetahui informasi selengkapnya tentang resource yang tersedia untuk menulis kondisi, lihat Resource yang didukung.

    • ACTION: tindakan yang akan diambil jika condition terpenuhi. Nilai yang mungkin adalah ALLOW dan DENY.
    • Tindakan izinkan berarti jika kondisi bernilai benar, operasi untuk membuat atau memperbarui resource diizinkan. Artinya juga bahwa setiap kasus lain kecuali yang tercantum secara eksplisit dalam kondisi diblokir.

      Tindakan penolakan berarti bahwa jika kondisi bernilai benar, operasi untuk membuat atau memperbarui resource akan diblokir.

    • DISPLAY_NAME: nama yang mudah dibaca manusia untuk batasan tersebut. Nama ini digunakan dalam pesan error dan dapat digunakan untuk identifikasi dan proses debug. Jangan menggunakan PII atau data sensitif dalam nama tampilan karena nama ini dapat terekspos dalam pesan error. Kolom ini dapat berisi hingga 200 karakter.
    • DESCRIPTION: deskripsi batasan yang mudah dipahami manusia untuk ditampilkan sebagai pesan error saat kebijakan dilanggar. Kolom ini dapat berisi hingga 2.000 karakter.
  3. Setelah membuat file YAML untuk batasan kustom baru, Anda harus menyiapkannya agar tersedia untuk kebijakan organisasi di organisasi Anda. Untuk menyiapkan batasan kustom, gunakan perintah gcloud org-policies set-custom-constraint:
  4. gcloud org-policies set-custom-constraint CONSTRAINT_PATH

    Ganti CONSTRAINT_PATH dengan jalur lengkap ke file batasan kustom Anda. Contoh, /home/user/customconstraint.yaml.

    Setelah operasi ini selesai, batasan kustom Anda tersedia sebagai kebijakan organisasi dalam daftar kebijakan organisasi Google Cloud .

  5. Untuk memverifikasi ada tidaknya batasan kustom, gunakan perintah gcloud org-policies list-custom-constraints:
  6. gcloud org-policies list-custom-constraints --organization=ORGANIZATION_ID

    Ganti ORGANIZATION_ID dengan ID resource organisasi Anda.

    Untuk mengetahui informasi selengkapnya, lihat Melihat kebijakan organisasi.

Menerapkan kebijakan organisasi kustom

Anda dapat menerapkan batasan dengan membuat kebijakan organisasi yang mereferensikannya, lalu menerapkan kebijakan organisasi tersebut ke resource Google Cloud .

Konsol

  1. Di konsol Google Cloud , buka halaman Organization policies.

    Buka Organization policies

  2. Dari pemilih project, pilih project yang ingin Anda tetapkan kebijakan organisasinya.
  3. Dari daftar di halaman Organization policies, pilih batasan Anda untuk melihat halaman Policy details untuk batasan tersebut.
  4. Guna mengonfigurasi kebijakan organisasi untuk resource ini, klik Manage policy.
  5. Di halaman Edit policy, pilih Override parent's policy.
  6. Klik Add a rule.
  7. Di bagian Enforcement, pilih apakah kebijakan organisasi ini diterapkan atau tidak.
  8. Opsional: Agar kebijakan organisasi menjadi bersyarat pada tag, klik Add condition. Perhatikan bahwa jika menambahkan aturan kondisional ke kebijakan organisasi, Anda harus menambahkan setidaknya satu aturan tanpa syarat atau kebijakan tidak dapat disimpan. Untuk mengetahui informasi selengkapnya, lihat Mencakup kebijakan organisasi dengan tag.
  9. Klik Test changes untuk menyimulasikan efek kebijakan organisasi. Untuk mengetahui informasi selengkapnya, lihat Menguji perubahan kebijakan organisasi dengan Policy Simulator.
  10. Untuk menerapkan kebijakan organisasi dalam mode uji coba, klik Set dry run policy. Untuk informasi selengkapnya, lihat Menguji kebijakan organisasi.
  11. Setelah Anda memverifikasi bahwa kebijakan organisasi dalam mode uji coba berfungsi sebagaimana mestinya, tetapkan kebijakan aktif dengan mengklik Set policy.

gcloud

  1. Untuk membuat kebijakan organisasi dengan aturan boolean, buat file YAML kebijakan yang mereferensikan batasan:
  2. name: projects/PROJECT_ID/policies/CONSTRAINT_NAME
    spec:
      rules:
      - enforce: true
    
    dryRunSpec:
      rules:
      - enforce: true

    Ganti kode berikut:

    • PROJECT_ID: project tempat Anda ingin menerapkan batasan Anda.
    • CONSTRAINT_NAME: nama yang Anda tentukan untuk batasan kustom. Contoh, custom.enableCloudBuildPubsubTrigger.
  3. Untuk menerapkan kebijakan organisasi dalam mode uji coba, jalankan perintah berikut dengan tanda dryRunSpec:
  4. gcloud org-policies set-policy POLICY_PATH --update-mask=dryRunSpec

    Ganti POLICY_PATH dengan jalur lengkap ke file YAML kebijakan organisasi Anda. Kebijakan ini memerlukan waktu hingga 15 menit untuk diterapkan.

  5. Setelah Anda memverifikasi bahwa kebijakan organisasi dalam mode uji coba berfungsi sebagaimana mestinya, tetapkan kebijakan aktif dengan perintah org-policies set-policy dan tanda spec:
  6. gcloud org-policies set-policy POLICY_PATH --update-mask=spec

    Ganti POLICY_PATH dengan jalur lengkap ke file YAML kebijakan organisasi Anda. Kebijakan ini memerlukan waktu hingga 15 menit untuk diterapkan.

Menguji kebijakan organisasi kustom

Contoh berikut membuat batasan dan kebijakan kustom yang mengizinkan pembuatan pemicu build hanya jika pemicunya berjenis Pub/Sub dan memproses topik yang berisi "cloud-build".

Sebelum memulai, Anda harus memiliki hal berikut:

  • ID organisasi Anda
  • Project ID

Membuat batasan

Untuk membuat batasan kustom, ikuti langkah-langkah berikut:

  1. Buat file YAML berikut dan simpan sebagai constraint-enforce-vulnerabilityAssessmentTitle.yaml:

    name: organizations/ORGANIZATION_ID/customConstraints/custom.enableCloudBuildPubsubTrigger
    resourceTypes:
    - cloudbuild.googleapis.com/BuildTrigger
    methodTypes:
    - CREATE
    condition:  "resource.pubsubConfig != null && resource.pubsubConfig.topic.contains('cloud-build')"
    actionType: ALLOW
    displayName: Requires Pub/Sub triggers to contain "cloud-build" in the topic name.
    description: Pub/Sub triggers must contain "cloud-build" in the topic name.
    

    Ganti ORGANIZATION_ID dengan ID organisasi Anda.

  2. Terapkan batasan:

    gcloud org-policies set-custom-constraint ~/constraint-enforce-vulnerabilityAssessmentTitle
    
  3. Pastikan batasan ada:

    gcloud org-policies list-custom-constraints --organization=ORGANIZATION_ID
    

    Outputnya mirip dengan contoh berikut:

    CUSTOM_CONSTRAINT                                          ACTION_TYPE  METHOD_TYPES   RESOURCE_TYPES                           DISPLAY_NAME
    custom.enableCloudBuildPubsubTrigger                       DENY         CREATE         cloudbuild.googleapis.com/BuildTrigger   Enable creating Pub/Sub trigger that listens on topics that contain "cloud-build".
    ...
    

Membuat kebijakan

Buat kebijakan dan terapkan ke batasan khusus yang Anda buat:

  1. Simpan file berikut sebagai policy-enforce-enableCloudBuildPubsubTrigger.yaml:

    name: projects/PROJECT_ID/policies/custom.enforceEnableCloudBuildPubsubTrigger
    spec:
      rules:
      - enforce: true
    

    Ganti PROJECT_ID dengan project ID Anda.

  2. Terapkan kebijakan:

    gcloud org-policies set-policy ~/policy-enforce-enableCloudBuildPubsubTrigger.yaml
    
  3. Pastikan kebijakan ada:

    gcloud org-policies list --project=PROJECT_ID
    

    Outputnya mirip dengan hal berikut ini:

    CONSTRAINT                                     LIST_POLICY    BOOLEAN_POLICY    ETAG
    custom.enforceEnableCloudBuildPubsubTrigger    -              SET               COCsm5QGENiXi2E=
    

Setelah Anda menerapkan kebijakan, tunggu sekitar dua menit hingga Google Cloud mulai menerapkan kebijakan tersebut.

Menguji kebijakan

Untuk menguji kebijakan, lakukan hal berikut:

  1. Buat topik Pub/Sub yang tidak menyertakan cloud-build di ID topik.

  2. Buat pemicu Pub/Sub untuk topik tersebut.

    Outputnya adalah sebagai berikut:

    Operation denied by custom org policies: ["customConstraints/custom.enableCloudBuildPubsubTrigger": "Pub/Sub triggers must contain "cloud-build" in the topic name."]
    

Contoh kebijakan organisasi kustom untuk kasus penggunaan umum

Tabel ini memberikan contoh sintaksis untuk beberapa batasan kustom umum.

Deskripsi Sintaksis batasan
Build harus menggunakan cloudbuild.yaml sebagai file konfigurasi build.
    actionType: ALLOW
    condition: "resource.source.storageSource.object.endsWith('cloudbuild.yaml')"
    description: All builds must use cloudbuild.yaml as the build configuration file.
    displayName: Enforce cloudbuild.yaml as the build config file name.
    methodTypes:
      - CREATE
    name: organizations/ORGANIZATION_ID/customConstraints/custom.enforceCloudBuildFileName
    resourceTypes:
      - cloudbuild.googleapis.com/Build
    
Pemicu build harus menggunakan repositori yang disetujui
    actionType: ALLOW
    condition: "resource.repoSource.repoName == 'projects/PROJECT_ID/repos/approved-app-repo'"
    description: All Cloud Build Triggers must use the approved-app-repo repository.
    displayName: Enforce approved repository for build triggers
    methodTypes:
      - CREATE
    name: organizations/ORGANIZATION_ID/customConstraints/custom.enforceCloudBuildFileName
    resourceTypes:
      - cloudbuild.googleapis.com/BuildTrigger
    

Resource yang didukung Cloud Build

Tabel berikut mencantumkan resource Cloud Build yang dapat Anda referensikan dalam batasan kustom.

Resource Kolom
cloudbuild.googleapis.com/BitbucketServerConfig resource.apiKey
resource.hostUri
resource.name
resource.peeredNetwork
resource.peeredNetworkIpRange
resource.secrets.adminAccessTokenVersionName
resource.secrets.readAccessTokenVersionName
resource.secrets.webhookSecretVersionName
resource.sslCa
resource.username
cloudbuild.googleapis.com/Build resource.artifacts.goModules.modulePath
resource.artifacts.goModules.moduleVersion
resource.artifacts.goModules.repositoryLocation
resource.artifacts.goModules.repositoryName
resource.artifacts.goModules.repositoryProjectId
resource.artifacts.goModules.sourcePath
resource.artifacts.images
resource.artifacts.mavenArtifacts.artifactId
resource.artifacts.mavenArtifacts.groupId
resource.artifacts.mavenArtifacts.path
resource.artifacts.mavenArtifacts.repository
resource.artifacts.mavenArtifacts.version
resource.artifacts.npmPackages.packagePath
resource.artifacts.npmPackages.repository
resource.artifacts.objects.location
resource.artifacts.objects.paths
resource.artifacts.pythonPackages.paths
resource.artifacts.pythonPackages.repository
resource.availableSecrets.inline.envMap
resource.availableSecrets.inline.kmsKeyName
resource.availableSecrets.secretManager.env
resource.availableSecrets.secretManager.versionName
resource.dependencies.empty
resource.dependencies.gitSource.depth
resource.dependencies.gitSource.destPath
resource.dependencies.gitSource.recurseSubmodules
resource.dependencies.gitSource.repository.developerConnect
resource.dependencies.gitSource.repository.url
resource.dependencies.gitSource.revision
resource.gitConfig.http.proxySecretVersionName
resource.images
resource.logsBucket
resource.options.automapSubstitutions
resource.options.defaultLogsBucketBehavior
resource.options.diskSizeGb
resource.options.dynamicSubstitutions
resource.options.enableStructuredLogging
resource.options.env
resource.options.logging
resource.options.logStreamingOption
resource.options.machineType
resource.options.pool.name
resource.options.pubsubTopic
resource.options.requestedVerifyOption
resource.options.secretEnv
resource.options.sourceProvenanceHash
resource.options.substitutionOption
resource.options.volumes.name
resource.options.volumes.path
resource.queueTtl
resource.secrets.kmsKeyName
resource.secrets.secretEnv
resource.serviceAccount
resource.source.connectedRepository.dir
resource.source.connectedRepository.repository
resource.source.connectedRepository.revision
resource.source.developerConnectConfig.dir
resource.source.developerConnectConfig.gitRepositoryLink
resource.source.developerConnectConfig.revision
resource.source.gitSource.dir
resource.source.gitSource.revision
resource.source.gitSource.url
resource.source.repoSource.branchName
resource.source.repoSource.commitSha
resource.source.repoSource.dir
resource.source.repoSource.invertRegex
resource.source.repoSource.projectId
resource.source.repoSource.repoName
resource.source.repoSource.substitutions
resource.source.repoSource.tagName
resource.source.storageSource.bucket
resource.source.storageSource.generation
resource.source.storageSource.object
resource.source.storageSource.sourceFetcher
resource.source.storageSourceManifest.bucket
resource.source.storageSourceManifest.generation
resource.source.storageSourceManifest.object
resource.steps.allowExitCodes
resource.steps.allowFailure
resource.steps.args
resource.steps.automapSubstitutions
resource.steps.dir
resource.steps.entrypoint
resource.steps.env
resource.steps.id
resource.steps.name
resource.steps.script
resource.steps.secretEnv
resource.steps.timeout
resource.steps.volumes.name
resource.steps.volumes.path
resource.steps.waitFor
resource.substitutions
resource.tags
resource.timeout
cloudbuild.googleapis.com/BuildTrigger resource.approvalConfig.approvalRequired
resource.autodetect
resource.bitbucketServerTriggerConfig.bitbucketServerConfigResource
resource.bitbucketServerTriggerConfig.projectKey
resource.bitbucketServerTriggerConfig.pullRequest.branch
resource.bitbucketServerTriggerConfig.pullRequest.commentControl
resource.bitbucketServerTriggerConfig.pullRequest.invertRegex
resource.bitbucketServerTriggerConfig.push.branch
resource.bitbucketServerTriggerConfig.push.invertRegex
resource.bitbucketServerTriggerConfig.push.tag
resource.bitbucketServerTriggerConfig.repoSlug
resource.build.artifacts.images
resource.build.artifacts.mavenArtifacts.artifactId
resource.build.artifacts.mavenArtifacts.groupId
resource.build.artifacts.mavenArtifacts.path
resource.build.artifacts.mavenArtifacts.repository
resource.build.artifacts.mavenArtifacts.version
resource.build.artifacts.npmPackages.packagePath
resource.build.artifacts.npmPackages.repository
resource.build.artifacts.objects.location
resource.build.artifacts.objects.paths
resource.build.artifacts.pythonPackages.paths
resource.build.artifacts.pythonPackages.repository
resource.build.availableSecrets.inline.envMap
resource.build.availableSecrets.inline.kmsKeyName
resource.build.availableSecrets.secretManager.env
resource.build.availableSecrets.secretManager.versionName
resource.build.dependencies.empty
resource.build.dependencies.gitSource.depth
resource.build.dependencies.gitSource.destPath
resource.build.dependencies.gitSource.recurseSubmodules
resource.build.dependencies.gitSource.repository.developerConnect
resource.build.dependencies.gitSource.repository.url
resource.build.dependencies.gitSource.revision
resource.build.gitConfig.http.proxySecretVersionName
resource.build.images
resource.build.logsBucket
resource.build.options.automapSubstitutions
resource.build.options.defaultLogsBucketBehavior
resource.build.options.diskSizeGb
resource.build.options.dynamicSubstitutions
resource.build.options.env
resource.build.options.logging
resource.build.options.logStreamingOption
resource.build.options.machineType
resource.build.options.pool.name
resource.build.options.requestedVerifyOption
resource.build.options.secretEnv
resource.build.options.sourceProvenanceHash
resource.build.options.substitutionOption
resource.build.options.volumes.name
resource.build.options.volumes.path
resource.build.queueTtl
resource.build.secrets.kmsKeyName
resource.build.secrets.secretEnv
resource.build.serviceAccount
resource.build.source.connectedRepository.dir
resource.build.source.connectedRepository.repository
resource.build.source.connectedRepository.revision
resource.build.source.developerConnectConfig.dir
resource.build.source.developerConnectConfig.gitRepositoryLink
resource.build.source.developerConnectConfig.revision
resource.build.source.gitSource.dir
resource.build.source.gitSource.revision
resource.build.source.gitSource.url
resource.build.source.repoSource.branchName
resource.build.source.repoSource.commitSha
resource.build.source.repoSource.dir
resource.build.source.repoSource.invertRegex
resource.build.source.repoSource.projectId
resource.build.source.repoSource.repoName
resource.build.source.repoSource.substitutions
resource.build.source.repoSource.tagName
resource.build.source.storageSource.bucket
resource.build.source.storageSource.generation
resource.build.source.storageSource.object
resource.build.source.storageSource.sourceFetcher
resource.build.source.storageSourceManifest.bucket
resource.build.source.storageSourceManifest.generation
resource.build.source.storageSourceManifest.object
resource.build.steps.allowExitCodes
resource.build.steps.allowFailure
resource.build.steps.args
resource.build.steps.automapSubstitutions
resource.build.steps.dir
resource.build.steps.entrypoint
resource.build.steps.env
resource.build.steps.id
resource.build.steps.name
resource.build.steps.script
resource.build.steps.secretEnv
resource.build.steps.timeout
resource.build.steps.volumes.name
resource.build.steps.volumes.path
resource.build.steps.waitFor
resource.build.substitutions
resource.build.tags
resource.build.timeout
resource.description
resource.disabled
resource.eventType
resource.filename
resource.filter
resource.gitFileSource.bitbucketServerConfig
resource.gitFileSource.githubEnterpriseConfig
resource.gitFileSource.path
resource.gitFileSource.repository
resource.gitFileSource.repoType
resource.gitFileSource.revision
resource.gitFileSource.uri
resource.github.enterpriseConfigResourceName
resource.github.name
resource.github.owner
resource.github.pullRequest.branch
resource.github.pullRequest.commentControl
resource.github.pullRequest.invertRegex
resource.github.push.branch
resource.github.push.invertRegex
resource.github.push.tag
resource.gitlabEnterpriseEventsConfig.gitlabConfigResource
resource.gitlabEnterpriseEventsConfig.projectNamespace
resource.gitlabEnterpriseEventsConfig.pullRequest.branch
resource.gitlabEnterpriseEventsConfig.pullRequest.commentControl
resource.gitlabEnterpriseEventsConfig.pullRequest.invertRegex
resource.gitlabEnterpriseEventsConfig.push.branch
resource.gitlabEnterpriseEventsConfig.push.invertRegex
resource.gitlabEnterpriseEventsConfig.push.tag
resource.ignoredFiles
resource.includeBuildLogs
resource.includedFiles
resource.name
resource.pubsubConfig.serviceAccountEmail
resource.pubsubConfig.topic
resource.repositoryEventConfig.pullRequest.branch
resource.repositoryEventConfig.pullRequest.commentControl
resource.repositoryEventConfig.pullRequest.invertRegex
resource.repositoryEventConfig.push.branch
resource.repositoryEventConfig.push.invertRegex
resource.repositoryEventConfig.push.tag
resource.repositoryEventConfig.repository
resource.resourceName
resource.serviceAccount
resource.sourceToBuild.bitbucketServerConfig
resource.sourceToBuild.githubEnterpriseConfig
resource.sourceToBuild.ref
resource.sourceToBuild.repository
resource.sourceToBuild.repoType
resource.sourceToBuild.uri
resource.substitutions
resource.tags
resource.triggerTemplate.branchName
resource.triggerTemplate.commitSha
resource.triggerTemplate.dir
resource.triggerTemplate.invertRegex
resource.triggerTemplate.projectId
resource.triggerTemplate.repoName
resource.triggerTemplate.substitutions
resource.triggerTemplate.tagName
resource.webhookConfig.secret
cloudbuild.googleapis.com/Connection resource.annotations
resource.bitbucketCloudConfig.authorizerCredential.userTokenSecretVersion
resource.bitbucketCloudConfig.readAuthorizerCredential.userTokenSecretVersion
resource.bitbucketCloudConfig.webhookSecretSecretVersion
resource.bitbucketCloudConfig.workspace
resource.bitbucketDataCenterConfig.authorizerCredential.userTokenSecretVersion
resource.bitbucketDataCenterConfig.hostUri
resource.bitbucketDataCenterConfig.readAuthorizerCredential.userTokenSecretVersion
resource.bitbucketDataCenterConfig.serviceDirectoryConfig.service
resource.bitbucketDataCenterConfig.sslCa
resource.bitbucketDataCenterConfig.webhookSecretSecretVersion
resource.disabled
resource.githubConfig.appInstallationId
resource.githubConfig.authorizerCredential.oauthTokenSecretVersion
resource.githubEnterpriseConfig.apiKey
resource.githubEnterpriseConfig.appId
resource.githubEnterpriseConfig.appInstallationId
resource.githubEnterpriseConfig.appSlug
resource.githubEnterpriseConfig.authorizerCredential.oauthTokenSecretVersion
resource.githubEnterpriseConfig.hostUri
resource.githubEnterpriseConfig.oauthClientIdSecretVersion
resource.githubEnterpriseConfig.oauthSecretSecretVersion
resource.githubEnterpriseConfig.privateKeySecretVersion
resource.githubEnterpriseConfig.serviceDirectoryConfig.service
resource.githubEnterpriseConfig.sslCa
resource.githubEnterpriseConfig.webhookSecretSecretVersion
resource.gitlabConfig.authorizerCredential.userTokenSecretVersion
resource.gitlabConfig.hostUri
resource.gitlabConfig.readAuthorizerCredential.userTokenSecretVersion
resource.gitlabConfig.serviceDirectoryConfig.service
resource.gitlabConfig.sslCa
resource.gitlabConfig.webhookSecretSecretVersion
resource.name
cloudbuild.googleapis.com/GithubEnterpriseConfig resource.appId
resource.displayName
resource.hostUrl
resource.name
resource.peeredNetwork
resource.secrets.oauthClientIdVersionName
resource.secrets.oauthSecretVersionName
resource.secrets.privateKeyVersionName
resource.secrets.webhookSecretVersionName
resource.sslCa
resource.webhookKey
cloudbuild.googleapis.com/Repository resource.annotations
resource.name
resource.remoteUri
cloudbuild.googleapis.com/WorkerPool resource.annotations
resource.displayName
resource.privatePoolV1Config.networkConfig.egressOption
resource.privatePoolV1Config.networkConfig.peeredNetwork
resource.privatePoolV1Config.networkConfig.peeredNetworkIpRange
resource.privatePoolV1Config.privateServiceConnect.networkAttachment
resource.privatePoolV1Config.privateServiceConnect.publicIpAddressDisabled
resource.privatePoolV1Config.privateServiceConnect.routeAllTraffic
resource.privatePoolV1Config.workerConfig.diskSizeGb
resource.privatePoolV1Config.workerConfig.machineType

Langkah berikutnya