[agw-cuj-arun-egress-vpc] - missing IAM grants for Agent Gateway service agent

Đang mở Phù hợp với người mới
#2,397 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
google-cloud
Lĩnh vực
cloud, documentation

Hướng nghiên cứu

Mở codelab về egress của Agent Gateway được liên kết và xem lại bước 4, bước 5 cùng lô API ở phần 1. Xác nhận các quyền IAM được báo cáo thuộc về cuối bước 4 và xóa iamconnectors.googleapis.com khỏi lô. Hoàn tất khi codelab có các quyền đó trước bước nhập gateway và có thể bật các API còn lại mà không cần dịch vụ không khả dụng này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Codelab: Agent Gateway egress from Agent Runtime to VPC network

Thanks for this awesome lab!

Context: fresh project, first time using Agent Gateway, Agent Registry and Agent Runtime. None of these APIs or roles had been enabled or granted before the codelab. Once granted, the roles persist (step 14 does not remove them), so a second run in the same project does not show these errors.

5. Gateway - import fails

gcloud network-services agent-gateways import fails with Config validation failed. The Agent Gateway service agent cannot read the VPC network, the PSC network attachment or the Cloud DNS zones. Single project, steps run as written.

does not have permission to read target network ... grant it roles/compute.networkViewer
does not have permission to read network attachment ... (compute.networkAttachments.get)
does not have permission to list Cloud DNS managed zones ... grant roles/dns.reader in the project

Fix: add to the end of step 4, so IAM propagates before step 5.

# grant compute network viewer to agent gateway service agent
gcloud projects add-iam-policy-binding ${PROJ_ID} \
  --member="serviceAccount:service-${PROJ_NO}@gcp-sa-agentgateway.iam.gserviceaccount.com" \
  --role="roles/compute.networkViewer" \
  --condition=None

# grant dns reader to agent gateway service agent
gcloud projects add-iam-policy-binding ${PROJ_ID} \
  --member="serviceAccount:service-${PROJ_NO}@gcp-sa-agentgateway.iam.gserviceaccount.com" \
  --role="roles/dns.reader" \
  --condition=None

3. Setup - API batch fails

iamconnectors.googleapis.com is not available to projects outside its allowlist. With it included, the whole part 1 batch fails and the other APIs in it (agentregistry, aiplatform, networkservices and others) are not enabled.

Service iamconnectors.googleapis.com is not available to this consumer.

Fix: remove iamconnectors.googleapis.com from part 1 and re-run. The rest of part 1 then enables. No later step uses it.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
32
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googlecodelabs/feedback

Tất cả issue của googlecodelabs/feedback

Issue tương tự

Thêm issue về Cloud

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.