Skip to content

Service credentials#

A service credential is a secret with which a program, an AI assistant or a host application enters Empowerment Center on behalf of a user, without a session and without a password. This page explains their scopes, how they are created and revoked, and how whoever administers the system watches them.

Before you start#

To… You need
Create and see your own query API and MCP credentials API and MCP access and Access to Empowerment Center
See your credentials without being able to create others Only API and MCP access
Create SCIM credentials in your name User administration
Create embedding, metadata exchange or SCIM credentials in another user's name System administration
See and revoke the credentials of all users System administration

The API and MCP access privilege is not in any initial role: it has to be given expressly to whoever needs it (see the security chapter).

Warning

A credential acts with all its holder's privileges, not with a part. Whoever has the secret sees the same as the holder. Treat it like a password: do not write it in code or in a repository, keep it in the secret store of the program that uses it and revoke it as soon as it is no longer needed.

What a credential is#

Each credential has:

  • A holder: a real, enabled ECenter user. The credential acts with the privileges they have at each moment; if their roles change, the change applies on the next request.
  • A client: a name that says which program uses it (“Weekly report (Python)”), from 1 to 100 characters. It serves to recognize it in the lists and in the audit.
  • One or more scopes: which integration it opens (below).
  • The connections, optionally: if they are limited, the credential only queries those connections; if not, the same as its holder, including those they are given later.
  • An expiry, mandatory.
  • The secret: ect_ followed by 43 characters. ECenter only stores its hash and the last four characters, which are shown as a hint (ect_…a9F2).

Scopes#

The scope chooses the routes the credential opens, not the data: the data is decided by the holder's privileges.

Scope (as it appears on screen) What it opens Combines with others Default expiry Maximum expiry
Query API The Query API With the MCP one 90 days 365 days
AI assistants (MCP) The MCP server With the Query API one 90 days 365 days
User provisioning (SCIM) The provisioning of users and groups No: it goes alone 365 days 730 days
Embedding Issuing the tokens of a host application No: it goes alone 365 days 365 days
Metadata exchange The metadata exchange without a session No: it goes alone 90 days 365 days
Scheduled tasks Launching, querying and stopping specific scheduled tasks No: it goes alone 90 days 365 days

A credential with both personal scopes takes the shorter expiry of the two. Those of SCIM, embedding, metadata exchange and scheduled tasks go alone so that a secret pasted in an identity provider or in continuous integration does not open the API, and vice versa.

Personal and in the name of a holder#

  • Personal ones (Query API and MCP) are only created for yourself, from the account menu. Nobody, not even System administration, can create an API credential in another user's name.
  • Those of a holder (SCIM, embedding, metadata exchange and scheduled tasks) are created by whoever administers, in the name of a user who meets what the scope requires:
Scope The holder needs
User provisioning (SCIM) User administration
Embedding System administration
Metadata exchange Metadata administration
Scheduled tasks Workbook administration (or System administration). Only whoever has System administration creates it.

If the holder loses that privilege later, the credential stops working for its surface (403 NOT_ALLOWED).

Statuses#

Status What it means
Active It is valid.
Expires in N days It is valid, but it expires in the next 14 days.
Expired Its date has passed. It cannot be renewed: create another.
Revoked It was revoked. It is final.
Holder disabled Its holder is disabled or locked. It becomes valid again if they are enabled.

Create a personal credential#

  1. Open the account menu and choose Service credentials.
  2. Click New credential….
  3. Type the Client name, for example “Weekly report (Python)”.
  4. In Scopes, check Query API, AI assistants (MCP) or both.
  5. In Expires, choose 30 days, 90 days or 1 year (365 days), or Another date… and type the Last day on which it is valid. The credential is valid until the end of that day (in UTC).
  6. If you want to limit it, choose in Only these connections the connections it will be able to query. Without choosing any, the same as yours apply.
  7. Click Create credential.
  8. Copy the secret now appears. Click Copy and paste it into the program or the assistant that will use it.
  9. Click Done.
The New service credential dialog with the client name, the two scopes and the expiryThe New service credential dialog with the client name, the two scopes and the expiry
The New service credential dialog with the client name, the two scopes and the expiry

Important

The secret is only shown once. ECenter does not store it and cannot show it again. If you lose it, revoke the credential and create another.

The Copy the secret now step, with the notice that it is the only time it is shownThe Copy the secret now step, with the notice that it is the only time it is shown
The Copy the secret now step, with the notice that it is the only time it is shown

If an error appears when creating it:

Message or code Cause What to do
“Type the client name.” The name is empty. Type a name.
“Choose at least one scope.” You have not checked any scope. Check one.
“It must expire after today.” The chosen date is today or earlier. Choose a later date.
409 TOO_MANY_CREDENTIALS The holder already has 10 valid credentials. Revoke those not in use.
“To create credentials you also need “Access to Empowerment Center”.” (and New credential… disabled) You have API and MCP access but not Access to Empowerment Center. Ask whoever administers users for it.

Without API and MCP access, the screen says “The “API and MCP access” privilege is required” and shows no credentials.

The limit of 10 valid credentials per holder allows rotating a credential without cutting the service: create the new one, change it in the program and then revoke the old one.

The Service credentials screen#

The account menu screen shows your credentials, from the most recent to the oldest, with these columns: Client, Scopes, Secret (the hint), Created, Expires, Last used and Status. When you select one, the detail panel adds the connections, who created it, the address from which it was last used and, if it is revoked, when, by whom and why.

Last use is recorded at most every 5 minutes, so it may lag somewhat behind.

If the MCP server is enabled, the screen also carries the Connect an assistant (MCP) card, which is explained in MCP server.

The Service credentials screen with two credentials, the detail of one and the Connect an assistant (MCP) cardThe Service credentials screen with two credentials, the detail of one and the Connect an assistant (MCP) card
The Service credentials screen with two credentials, the detail of one and the Connect an assistant (MCP) card

Revoke a credential#

Revoking is immediate and final: the programs that use the credential stop getting in on the next request and their queries in progress are canceled.

  1. In Service credentials, select the credential.
  2. In its detail, click Revoke credential….
  3. Confirm with Revoke credential.

A credential can be revoked while it is active or with the holder disabled. Only its holder or whoever has System administration revokes it; for everyone else, it does not exist.

Expiry and notices#

  • The expiry is mandatory and cannot be extended. Before it expires, create another and change the secret in the program.
  • The holder of a personal credential gets an email 14 days before it expires, only once and without the secret. If the installation has its public address configured, the email carries a link to their credentials.
  • SCIM, embedding and metadata exchange credentials are watched by the operations console with the expiring credentials alert (see Operations).
  • Revoked or expired ones are deleted after 180 days.

Administer everyone's credentials#

Whoever has System administration sees the credentials of all users in Administration › Credentials.

The administration Credentials screen with the filters and the Installation keys cardThe administration Credentials screen with the filters and the Installation keys card
The administration Credentials screen with the filters and the Installation keys card

Filter#

The filter bar has:

Filter What it keeps
Scope Those of a scope.
Status Active, Expired, Revoked or Holder disabled.
Holder Those of a user, who is searched for by their login, their description or their email.
Expires before Those that expire before that day begins, including those already expired.

Clear all filters returns to the whole list. The filters go in the page address, so a filtered view can be saved or shared.

Create a credential in the name of a holder#

  1. In Administration › Credentials, click New credential….
  2. In Scope, choose User provisioning (SCIM), Embedding, Metadata exchange or Scheduled tasks. With Scheduled tasks, type in Tasks the numbers of the tasks it will be able to launch, separated by commas (at most 50; the number is in the detail of each task in Scheduling). Below the option it explains what it is for.
  3. Search for the holder in Search and choose them in Holder. Users who do not have the privilege the scope requires appear without being selectable and with the reason, for example “(without Metadata administration)”.
  4. Type the Client name and choose the expiry.
  5. Click Create credential and copy the secret.

Embedding credentials are normally created from the host application itself (see Embedding), which leaves them tied to it.

Revoke another user's credential#

The same as your own, but ECenter asks for a Reason (up to 500 characters), which stays in the credential's detail and in the audit.

The installation keys#

The Installation keys card shows the keys with which ECenter signs the tokens it issues for itself, such as the embedding ones. They are not credentials and are given to nobody.

  • They rotate by themselves every 90 days. The previous one stops signing and keeps verifying for one more hour, so that tokens already issued are not cut off.
  • Rotate now… forces a rotation, for example if you suspect that the secrets key (ECENTER_SECRETS_KEY) has been compromised.
  • The private key is stored encrypted with ECENTER_SECRETS_KEY. If that variable changes, ECenter creates another key when signing the next token and the previous one's tokens expire by themselves within minutes.

Configuration#

The defaults are changed in ecenter.security.credentials.* (see the configuration reference):

Property Default What it is
default-lifetime QUERY_API: 90d, MCP: 90d, SCIM: 365d, EMBED: 365d, METADATA_EXCHANGE: 90d, SCHEDULED_TASKS: 90d Proposed expiry per scope
max-lifetime QUERY_API: 365d, MCP: 365d, SCIM: 730d, EMBED: 365d, METADATA_EXCHANGE: 365d, SCHEDULED_TASKS: 365d Maximum expiry per scope
max-active-per-holder 10 Valid credentials per holder
touch-interval 5m How often last use is recorded
retention 180d How long revoked or expired ones are kept
expiry-notice 14d How far ahead the email to the holder goes

A scope not named in default-lifetime or max-lifetime keeps its default value (application.yml does not list METADATA_EXCHANGE, but it can be added).

See also#