Skip to main content

Create Role and Permissions

In OTPKI, permissions are granted to roles, and roles are held by users. The OTPKI Connector acts as an OTPKI user, so it needs a role that allows exactly the operations it performs.

Create the role first. The next step, Create OAuth Client, puts the name of this role into the access token so that OTPKI assigns it to the connector.

Create the role

Create a role for the connector, for example ilm-connector. Note the exact name, it has to be reproduced in the access token.

For more information, refer to Roles.

Grant the permissions

Grant the role the following permissions. Every listed action must resolve to Allow.

ResourceActionsRequired for
Certificate AuthorityReadConnection check, listing certification authorities, downloading CA certificates
Certificate ProfileReadListing the certificate profiles available for an RA Profile
End Entity ProfileReadListing the end entity profiles available for an RA Profile
End EntityCreate, Read, Update, RevokeCreating the end entity for a certificate, enrolling it, and revoking it
Issuance RequestCreate, ReadThe issuance that an enrollment creates, and reading its result
CertificateIssue, Read, RevokeIssuing certificates, matching them by serial number, and revoking them
Least privilege

The connector never deletes objects in OTPKI, and never manages users, roles, or permissions. Do not grant it Delete or any administration permissions. Retrieving a CRL requires no permission at all.

Instead of setting the individual cells, you can start from an OTPKI permission template and remove what is not needed. Templates replace the whole permission set of a role, so apply one before making manual changes rather than after.

For more information on how the permission matrix resolves, refer to Permissions.