Identity and Access Management (IAM) 역할을 사용하여 Cloud Trace 리소스를 보거나, 쓰고, 관리하는 세분화된 권한을 부여하고 trace 데이터에 대한 무단 액세스를 방지할 수 있습니다.
- 사용자 또는 서비스 계정에 IAM 역할을 부여하는 방법에 대한 자세한 내용은 프로젝트, 폴더, 조직에 대한 액세스 관리를 참조하세요.
- 사전 정의된 역할에 대한 자세한 내용은 IAM: 역할 및 권한을 참조하세요.
- 가장 적절한 사전 정의된 역할을 선택하는 데 도움이 필요하면 사전 정의된 역할 선택을 참조하세요.
권장사항
문제 해결을 용이하게 하려면 프로젝트에서 trace 데이터를 봐야 하는 모든 사용자, 그룹, 도메인에
Cloud Trace 사용자 역할 (roles/cloudtrace.user)을
부여하세요.
이 역할은 보안 주체에게 trace 데이터를 보는 데 필요한 권한을 부여합니다.
권한 및 사전 정의된 역할
IAM 역할은 권한을 포함하며 사용자, 그룹, 서비스 계정에 할당될 수 있습니다.
Cloud Trace 역할
다음 표에서는 Cloud Trace의 사전 정의된 역할과 이러한 역할의 권한을 보여줍니다.
| Role | Permissions |
|---|---|
Cloud Trace Admin( Provides full access to the Trace console and read-write access to traces. Lowest-level resources where you can grant this role:
|
|
Cloud Trace User( Provides full access to the Trace console and read access to traces. Lowest-level resources where you can grant this role:
|
|
Cloud Trace Agent( For service accounts. Provides ability to write traces by sending the data to Stackdriver Trace. Lowest-level resources where you can grant this role:
|
|
Telemetry API 역할
다음 표에서는 Telemetry (OTLP) API의 사전 정의된 역할과 이러한 역할의 권한을 보여줍니다.
| Role | Permissions |
|---|---|
Telemetry Admin( Admin role for telemetry |
|
Telemetry Editor( Editor role for telemetry |
|
Consumer Admin Beta( Grants permission management access to consumer resources. |
|
Cloud Telemetry Logs Writer Beta( Access to write logs. |
|
Cloud Telemetry Metrics Writer( Access to write metrics. |
|
Integrated Service Telemetry Logs Writer Beta( Allows an onboarded service to write log data to a destination. |
|
Integrated Service Telemetry Metrics Writer Beta( Allows an onboarded service to write metrics data to a destination. |
|
Integrated Service Telemetry Writer Beta( Allows an onboarded service to write all telemetry data to a destination. |
|
Integrated Service Telemetry Traces Writer Beta( Allows an onboarded service to write trace data to a destination. |
|
Cloud Telemetry Traces Writer( Access to write trace spans. |
|
Cloud Telemetry Writer( Full access to write all telemetry data. |
|
맞춤 역할 만들기
Cloud Trace 권한이 포함된 커스텀 역할을 만들려면 다음을 수행하세요.
- Cloud Trace API를 사용할 수 있는 권한만 포함된 역할을 만들려면 API 호출에 필요한 특정 권한을 선택합니다.
- Cloud Trace API 및 Google Cloud 콘솔을 사용할 수 있는 권한이 포함된 역할을 만들려면 사전 정의된 Cloud Trace 역할 중 하나에서 권한 그룹을 선택합니다.
- trace 데이터 쓰기 권한을 부여하려면 Cloud Trace 에이전트 역할 (
roles/cloudtrace.agent)에서 권한을 복사합니다.
커스텀 역할에 대한 자세한 내용은 커스텀 역할 만들기 및 관리를 참조하세요.
API 메서드에 대한 권한
API 호출을 실행하는 데 필요한 권한에 대한 자세한 내용은 Cloud Trace API 참고 문서를 참조하세요.
교차 프로젝트 trace 역할
애플리케이션은 여러 Google Cloud 프로젝트에 trace 데이터를 저장할 수 있습니다. 하지만 다음을 수행하면 단일 프로젝트에서 이 데이터를 볼 수 있습니다.
trace 데이터를 보려는 프로젝트에서 trace 범위를 구성합니다. 이 범위를 구성하려면 모니터링 가능성 범위 편집자 역할 (
roles/observability.scopesEditor)이 있어야 합니다.trace 데이터를 보려는 프로젝트와 trace 데이터를 저장하는 모든 프로젝트에 Cloud Trace 사용자 역할 (
roles/cloudtrace.user)이 있습니다.
자세한 내용은 프로젝트 간 trace 보기를 참조하세요.