Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Oracle · OCI Foundations

Authentication and policies

OCI Foundations · Lesson 4 of 15 · 21:08

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Oracle Cloud Infrastructure Foundations Associate exam (1Z0-1085-26). In this lesson: authentication (passwords and multi-factor authentication, API signing keys, auth tokens, customer secret keys, and federation) and authorization: groups, the syntax of a policy, its four verbs, where a policy is attached, and dynamic groups. Includes three original practice questions, with Kettlebrook Fitness, a fictional gym chain, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Who can do what?

Kettlebrook has created its compartments, and now its people need to sign in and get the right permissions. A developer also wants a server that uploads class videos to storage, without any password in its code. This lesson covers authentication, authorization with policies, and dynamic groups.

Authentication

Authentication proves who a principal is. People sign in to the Console with a user name and a password, and Oracle seeds a sign-on policy that adds multi-factor authentication, which you should activate, at least for administrators. Programs that call the API, like the CLI or an SDK, sign their requests with an API signing key: a pair of RSA keys whose public key you add to the user, and which is different from the SSH key that opens an instance. An auth token is generated by Oracle for third-party APIs, and customer secret keys let tools built for the Amazon S3 API work with Object Storage. And with federation, people sign in with the identity provider that their company already uses.

Authorization and policies

Authorization decides what an authenticated principal can do, and in OCI it is written in policies. A policy is a set of statements in plain language, like: Allow group NetworkAdmins to manage virtual-network-family in compartment Network. Statements can only allow: there is no deny statement, and anything that no policy allows is refused. And access is granted to groups, not to single users, on a compartment or on the whole tenancy.

The four verbs

Each statement uses one of four verbs, from the least access to the most. Inspect lets a group list resources, without their confidential details, which suits third-party auditors. Read adds the details and the content of the resources, for internal auditors. Use lets a group work with existing resources, but usually not create or delete them, for everyday users. And manage gives every permission on the resource, for administrators.

Resources, location, and attachment

A statement names a resource type: a single type, like instances or buckets, or a family, like instance-family, virtual-network-family, or object-family, while all-resources covers everything. The location is a compartment or the tenancy, and a permission on the tenancy reaches every compartment inside it. An optional where clause adds conditions, for example on the requested region. And the compartment where you attach a policy decides who can change or delete it later, so attach it to the compartment, or to a parent, that the right administrators control.

Dynamic groups

Sometimes the principal is not a person, but a compute instance. A dynamic group contains the instances that match rules that you define, for example every instance in a given compartment, so its members change as instances are created or deleted. You write policies for the dynamic group, like for any group, and its instances act as instance principals: they call OCI services with certificates that OCI creates and rotates for them. So no password and no API key is stored on the server. But anyone who can connect to such an instance with SSH also gets its permissions, so give the dynamic group only what it needs.

Recap

Let's recap. Authentication proves who you are: a password and multi-factor authentication for people, API signing keys for programs, and federation with your own identity provider. Policies grant access to groups, in statements that only allow: allow, a group, a verb, a resource type, and a location. The four verbs are inspect, read, use, and manage, from the least access to the most. Resource types can be single types or families, and the attachment compartment decides who can change a policy. And dynamic groups let instances call OCI services as instance principals, with no stored credential.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. A Kettlebrook developer wants a script on their laptop to call the OCI API. Which credential should the script use?

    • The SSH key of a compute instance
    • The developer’s Console password
    • An API signing key
    • A customer secret key
    Show the answer

    An API signing key

    Programs that call the OCI API sign their requests with an API signing key. “The SSH key of a compute instance” opens a session on an instance, and it is a different key from the API signing key. “The developer’s Console password” is for people who sign in to the Console. And “A customer secret key” is for tools that use the Amazon S3 compatible API of Object Storage.

  2. Kettlebrook’s internal auditors must see the configuration and the content of the resources in the Finance compartment, without changing anything. Which verb fits?

    • manage
    • use
    • inspect
    • read
    Show the answer

    read

    Read shows the details and the content of resources, without any change. “manage” would give every permission, far more than auditors need. “use” would let them work with the resources, which goes beyond looking. And “inspect” would only list the resources, without their details or content.

  3. A Kettlebrook server must upload class videos to Object Storage, and the security team forbids any credential stored on it. What should the team set up?

    • An API signing key copied to the server
    • A dynamic group with a policy for it
    • A user password written in the code
    • The server in the Administrators group
    Show the answer

    A dynamic group with a policy for it

    With a dynamic group and a policy, the instance calls Object Storage as an instance principal, with certificates that OCI rotates. “An API signing key copied to the server” would store a long-lived key on the server, which the security team forbids. “A user password written in the code” would put a password in the code, the worst place for it. And “The server in the Administrators group” would give the server far more access than uploading videos needs, and it would still need a credential.