About Your API Access Policy

Your API access policy provides you with additional security when using OUTSCALE services.

General Information

Your API access policy enables you to:

  • Require the use of expiration dates for your access keys.

  • Activate a trusted session to make multi-factor authentication (MFA) mandatory in Cockpit.

  • Activate a trusted session to protect the use of certain API calls.

  • Activate a trusted session to require the use of trusted access keys when using the APIs.

  • If you use API access rules with Certificate Authorities (CAs), activate a trusted session to simplify the authentication process.

    • The use of Certificate Authorities (CAs) for API access rules is deprecated and will reach its end-of-life by the end of June 2027.

    • An API access policy does not apply to an account using identity federation.

    Like API access rules, a trusted session applies to all APIs as well as the interfaces and tools based on them, with the exception of the OUTSCALE Object Storage (OOS) and OUTSCALE Kubernetes as a Service (OKS) APIs.

Maximum Possible Lifetime for Access Keys

By default, your access keys have infinite lifetimes and thus do not need to be renewed. To set the expiration date of an access key, see Creating an Access Key or Modifying an Access Key.

You can use your API access policy to make the use of expiration dates mandatory, therefore increasing the security of your OUTSCALE account. For more information, see Managing Your API Access Policy.

Trusted Session

The use of Certificate Authorities (CAs) for API access rules is deprecated and will reach its end-of-life by the end of June 2027. You can still activate a trusted session to add a layer of security by requiring multi-factor authentication (MFA) for Cockpit and trusted access keys for API calls.

A trusted session has two main uses:

Simplifying the use of CAs in your API access rules.

If you have defined Certificate Authorities (CAs) in your API access rules, you must systematically provide a certificate in each of your requests to OUTSCALE services. For more information about CAs and certificates, see About API Access Rules.

In that situation, however, you can use your API access policy to activate a trusted session via the RequireTrustedEnv parameter of the UpdateApiAccessPolicy method. A trusted session enables you to bypass the requirement of systematically providing a certificate. Instead, you only provide the certificate when activating the trusted session itself.

To activate a trusted session, you must meet the following requirements:

  • All your access keys must have expiration dates.

  • All your API access rules must specify a CA.

Adding a layer of security by making MFA and trusted access keys mandatory.

A trusted session enables a root user to require multi-factor authentication (MFA) in Cockpit for itself and its EIM users.

To activate a trusted session, all your access keys must be trusted access keys. Meaning that they must:

  • have expiration dates,

  • have been created using Cockpit after a multi-factor authentication.

Once the session activated, all your access keys must stay trusted. Any action done in the Cloud, whether using Cockpit or a CLI, must be authenticated by a trusted access key.

For security reasons, when a trusted session is activated, the use of all methods managing access keys, API access rules, your API access policy and CAs is restricted to Cockpit after an MFA.

You can use your API access policy to activate a trusted session via the RequireTrustedEnvSecureMode parameter of the UpdateApiAccessPolicy method.

Scope of a Trusted Session

For security reasons, a trusted session restricts the use of certain API methods depending on the tool and the authentication method. The table below summarizes which action is possible given a tool and authentication method:

Methods Trusted session deactivated Trusted session activated

Restricted methods managing:

  • Access keys

  • CAs

  • API access rules

  • The API access policy

Any tool and authentication method

Cockpit with MFA

CLI

Non-restricted methods

Any tool and authentication method

Cockpit with any authentication

CLI with trusted access keys

In addition to the above, a few methods are public methods that do not require authentication. These are marked by a green banner in the OUTSCALE API documentation.

Related Pages

Corresponding API Methods