Help Center/ AI DataLake/ User Guide/ AI DataLake Permissions and Agencies/ Agency/ Agency Permission Policies for Common Scenarios
Updated on 2026-11-06 GMT+08:00

Agency Permission Policies for Common Scenarios

This section provides agency permission policies for common AI DataLake scenarios. You can use these examples as a reference when customizing your own permission policies.

OBS Permission Policy

Application scenario: In Aura, Ray, Spark, and Flink jobs, AI DataLake needs to read and write OBS to store logs.

  • Aura (AuraJobV2)
    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "obs:bucket:ListAllMyBuckets",
                    "obs:bucket:ListBucket",
                    "obs:object:GetObjectVersion",
                    "obs:object:DeleteObject",
                    "obs:object:GetObject",
                    "obs:object:PutObject"
                ]
            }
        ]
    }
  • Ray
    {
      "Version": "1.1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "obs:bucket:HeadBucket",
            "obs:bucket:ListBucket",
            "obs:bucket:GetBucketLocation",
            "obs:bucket:GetBucketStorage",
            "obs:object:PutObject",
            "obs:object:GetObject",
            "obs:object:DeleteObject"
          ]
        }
      ]
    }
  • Spark and Flink
    In the Resource area of the agency policy, replace bucketName with the actual name of your bucket.
    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "obs:bucket:GetBucketPolicy",
                    "obs:bucket:GetLifecycleConfiguration",
                    "obs:bucket:GetBucketLocation",
                    "obs:bucket:ListBucketMultipartUploads",
                    "obs:bucket:GetBucketLogging",
                    "obs:object:GetObjectVersion",
                    "obs:bucket:GetBucketStorage",
                    "obs:bucket:GetBucketVersioning",
                    "obs:object:GetObject",
                    "obs:object:GetObjectVersionAcl",
                    "obs:object:DeleteObject",
                    "obs:object:ListMultipartUploadParts",
                    "obs:bucket:HeadBucket",
                    "obs:bucket:GetBucketAcl",
                    "obs:bucket:GetBucketStoragePolicy",
                    "obs:object:AbortMultipartUpload",
                    "obs:object:DeleteObjectVersion",
                    "obs:object:GetObjectAcl",
                    "obs:bucket:ListBucketVersions",
                    "obs:bucket:ListBucket",
                    "obs:object:PutObject"
                ],
                "Resource": [
                    "OBS:*:*:bucket:bucketName",//Replace bucketName with the actual bucket name.
                    "OBS:*:*:object:*"
                ]
            },
            {
                "Effect": "Allow",
                "Action": [
                    "obs:bucket:ListAllMyBuckets"
                ]
            }
        ]
    }

LakeFormation Catalog Metadata Permission Policy

Application scenario: In Spark and Flink jobs, AI DataLake needs to access LakeFormation metadata.

{
    "Version": "1.1",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "lakeformation:table:drop",
                "lakeformation:table:create",
                "lakeformation:database:create",
                "lakeformation:database:drop",
                "lakeformation:database:describe",
                "lakeformation:catalog:alter",
                "lakeformation:table:alter",
                "lakeformation:database:alter",
                "lakeformation:catalog:create",
                "lakeformation:function:describe",
                "lakeformation:catalog:describe",
                "lakeformation:function:create",
                "lakeformation:table:describe",
                "lakeformation:function:drop",               
                "lakeformation:transaction:operate"
            ]
        }
    ]
}

DEW Encryption Permission Policy

Application scenario: Ray and Flink jobs require the DEW-CSMS secret management capabilities.

  • Ray
    {
      "Version": "1.1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "csms:secret:get",
            "csms:secretVersion:get",
            "kms:dek:crypto",
            "kms:dek:decrypt"
          ]
        }
      ]
    }
  • Flink
    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "csms:secretVersion:get",
                    "csms:secretVersion:list",
                    "kms:dek:decrypt"
                ]
            }
        ]
    }

DCS Redis Permission Policy

Application scenario: In Ray jobs, Ray clusters need to connect to Distributed Cache Service (DCS) Redis.

{
  "Version": "1.1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "dcs:instance:get",
        "dcs:instance:list",
        "dcs:ssl:get",
        "dcs:ssl:modify",
        "dcs:aclaccount:list"
      ]
    }
  ]
}

RayJob Permission Policy

Application scenario: Ray jobs need to be created and viewed.

{
  "Version": "1.1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "DataArtsFabric:rayJob:list",
        "DataArtsFabric:rayJob:run",
        "DataArtsFabric:rayJob:show",
        "DataArtsFabric:rayJob:cancel",
        "DataArtsFabric:endpoint:show",
        "DataArtsFabric:endpoint:list",
        "DataArtsFabric:workspace:list",
        "DataArtsFabric:federation:show",
        "DataArtsFabric:federation:list"
      ]
    }
  ]
}

SWR Image Repository Permission Policy

Application scenario: In Ray jobs, images need to be viewed and pulled.

{
  "Version": "1.1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "swr:repo:listRepoDomains",
        "swr:repo:listRepoTags",
        "swr:repo:getRepo",
        "swr:repo:download",
        "swr:system:createLoginSecret"
      ]
    }
  ]
}

VPCEP Endpoint Permission Policy

Application scenario: In RayCluster DCS Redis jobs, VPC Endpoint (VPCEP) needs to be accessed and used.

{
  "Version": "1.1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "vpcep:endpoints:create",
        "vpcep:endpoints:delete",
        "vpcep:endpoints:get",
        "vpcep:endpoints:list",
        "vpcep:epservices:*",
        "vpcep:connections:*",
        "vpcep:permissions:*"
      ]
    }
  ]
}

AOM Monitoring Permission Policy

Application scenario: In Ray jobs, Application Operations Management (AOM) monitoring metrics need to be accessed.

{
  "Version": "1.1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "aom:metric:put",
        "aom:alarm:put"
      ]
    }
  ]
}

LTS Log Permission Policy

Application scenario: In Ray jobs, Log Tank Service (LTS) logs need to be accessed and used.

{
  "Version": "1.1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "lts:groups:get",
        "lts:groups:list",
        "lts:groups:create",
        "lts:topics:get",
        "lts:topics:list",
        "lts:topics:create"
      ]
    }
  ]
}