Access & Permissions
Give users and integrations only the access they need.
User guide navigation
On this page
Access and permissions
Epistola keeps access separate per tenant. A role grants permissions. For example to view or edit content, release and deploy catalogs, generate or read documents, or manage the tenant. What a person or an application can do is the sum of all the roles it has.
Choose a role
Give a person or an application as few roles as their work needs:
- Viewer — View templates, themes, stencils, reference data, and catalogs. A viewer does not see generated documents.
- Author — Create and edit templates, themes, stencils, and reference data.
- Generator — Generate documents, and read the generated documents.
- Document reader — Read generated documents without generating them.
- Publisher — Release catalogs, deploy releases to environments, and edit quality profiles. Publishing is separate from tenant administration.
- Administrator — Manage tenant settings, integrations, applications and API keys, support requests, catalogs, logs, and the audit trail. An administrator does not publish.
You can combine roles. A role never includes another role by itself. If someone needs to edit and release content, they need both Author and Publisher.
People get their roles from your identity provider, per tenant. There the roles are called content-viewer, content-author, document-generator, document-reader, content-publisher, and tenant-administrator. Applications get their roles in Epistola, as described below.
Create an application and an API key
An external system that calls the REST API is an application in Epistola. The application holds the roles. Its API keys identify the system and act with exactly those roles. You need the Administrator role to manage applications.
- Open Operations and then Applications. Choose New application.
- Give the application a name you recognize, such as
Valtimo testorCase system. - Select the roles the integration needs. Viewer is selected by default. An integration that generates documents needs Generator. If it also looks up templates and their data contract, keep Viewer too. It does not need Author or Administrator.
- Leave Sees every document of the tenant off for an integration. The application then receives only the documents it requested itself.
- Choose Create application.
- On the application’s page, choose New API key. Give the key a name, and set an expiry date if the key is temporary or you rotate it regularly.
- Choose Create API key and copy the key right away.
You see the key only once. After that you cannot recover it. Store it in the connected system’s secret manager. Never put it in source control or in code that runs in the browser. An application and its keys belong to one tenant and give no access to other tenants.
You can only give an application roles that you hold yourself in that tenant. That way an administrator cannot create a key that publishes.
The connected system sends the key with every request, in the header Authorization: ApiKey <key>. The 2.0 client libraries do this for you.
Operate and rotate keys
The application’s page lists its API keys. For each key it shows:
- the name
- the visible prefix
- who created it, and when
- when it was last used
- the expiry date
A key has no roles of its own. To change what an integration may do, choose Edit on the application’s page and change its roles. The change applies to all its keys.
To replace a key:
- Create a new key on the same application.
- Put the new key in the integration.
- Test the integration.
- Choose Revoke next to the old key.
The documents belong to the application, not to the key. So a new key keeps access to the documents the application requested before.
A system that still uses a revoked key is refused. If you use Valtimo or another connected system, configure the key there, together with the Epistola base URL and the tenant. How that works is in Connected Systems.
Review access regularly
Review user roles, applications, and API keys when a team changes, a project goes live, or you retire an integration. Follow these rules:
- Give each integration its own application.
- Give each application the least privilege possible.
- Set an expiry date on keys where you can.
- Revoke keys right away once nobody uses them.
Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →