IAM PoliciesΒΆ

Oracle Cloud Infrastructure Identity and Access Management (IAM) lets you specify policies to control the access to your cloud resources. This section describe the policies you might need for running Data Science Jobs.

Warning

The policies presented in this page are intended to show the resource_type used by the job and job runs. You should further restrict the access to the resources base on your needs.

Policy subject

In the following example, group <your_data_science_users> is the subject of the policy when using OCI API keys for authentication. For resource principal authentication, the subject should be a dynamic-group, for example, dynamic-group <your_dynamic_group>

Here is an example defining a dynamic group for all job runs in a compartment:

all { resource.type='datasciencejobrun', resource.compartment.id='<job_run_compartment_ocid>' }

The following policies are for creating and managing Data Science Jobs and Job Runs:

Allow group <your_data_science_users> to manage data-science-jobs in compartment <your_compartment_name>
Allow group <your_data_science_users> to manage data-science-job-runs in compartment <your_compartment_name>
Allow group <your_data_science_users> to use virtual-network-family in compartment <your_compartment_name>
Allow group <your_data_science_users> to manage log-groups in compartment <your_compartment_name>
Allow group <your_data_science_users> to use logging-family in compartment <your_compartment_name>
Allow group <your_data_science_users> to use read metrics in compartment <your_compartment_name>

The following policies are for job runs to access other OCI resources:

Allow dynamic-group <your_dynamic_group> to read repos in compartment <your_compartment_name>
Allow dynamic-group <your_dynamic_group> to use data-science-family in compartment <your_compartment_name>
Allow dynamic-group <your_dynamic_group> to use virtual-network-family in compartment <your_compartment_name>
Allow dynamic-group <your_dynamic_group> to use log-groups in compartment <your_compartment_name>
Allow dynamic-group <your_dynamic_group> to use logging-family in compartment <your_compartment_name>
Allow dynamic-group <your_dynamic_group> to manage objects in compartment <your_compartment_name> where all {target.bucket.name=<your_bucket_name>}
Allow dynamic-group <your_dynamic_group> to use buckets in compartment <your_compartment_name> where all {target.bucket.name=<your_bucket_name>}

The following policy is needed for running a container job:

Allow dynamic-group <your_dynamic_group> to read repos in compartment <your_compartment_name>

See also: