Refused issuances
This list is the other half of the issuance grants, read after the fact. The grant says what a caller may ask for; here is what one asked for and did not get.
A grant that turns out narrower than its author meant does not announce itself. The caller simply fails, and before these rows existed the reason lived only in the issuing service's log — so finding out why a device could not enrol meant knowing which process to search.
Nothing here is the ordinary state. An empty list means the certificate authority has turned nobody away. Something appears here when a grant is too narrow, when a caller asks for something it does not need, or when somebody asks who should not be asking at all.
Whoever should not be asking at all never reaches a grant: it lacks the permission for the operation, and the PKI turns it away before reading anything. That is listed here as well, with a reason of its own — see refused before any grant was asked.
What a row holds
| Column | What it says |
|---|---|
| When | When it happened; for a counted refusal, the first time. The list is newest-first and can be reversed. |
| Count | How often it happened. The same refusal is one row an hour whose count rises — by a grant as for a missing permission. |
| Caller | The client_id out of the token. If it is missing, that was already the reason. |
| Operation | Issuance, key export, subordination or revocation — different permissions, see what the grant does not decide. "Other operation" is everything else on the PKI's interface: reading and administering. |
| Reason | Which check turned it away. Also a filter. |
| Asked for | The common name that was requested. Where the permission was missing, the operation of the interface stands here, such as IssuanceGrants_Save. "Further refusals, counted" stands in the row that counts past a limit — see further refusals. |
| Profile asked for | The profile that was requested. |
Clicking a row additionally shows who was refused and as what (account, service, service acting for an account), the issuing authority asked for, the effective validity and, where there is one, the identifier of the profile asked for. The identifier stands next to the name because the two answer different questions: a profile that has since been deleted has no name left to show, and the identifier is then the only thing that still says what was asked for.
Further refusals, counted
The same refusal by a grant — the same caller, operation, reason and request — is one row per full
hour whose count rises; the view of the row also says when it last happened. Distinct refusals are
written per caller and hour up to the number Pki:IssuanceDenials:MaxDistinctPerCallerAndHour
allows (default 100), each with what was asked for.
Every further one is counted onto one row per operation and reason that names nothing of the request: no name, no profile, no issuer, no validity, no certificate. The list shows it as "Further refusals, counted" with its count. A caller that asks for a thousand different names in an hour does not fill the list that way; what it asked for each time is in the PKI's log.
Nothing is deleted here — neither on this page nor through the API. Rows age out after a period an administrator configures. A security record somebody can remove a row at a time answers "what happened" with "what somebody left behind".
Refused before any grant was asked
Every operation of the PKI requires a permission, which is given through roles at the Identity Provider. When a caller's token does not carry it, the PKI answers 403 before the operation begins. The reason is then permission missing. For whoever runs a certificate authority this is the row to see: somebody with a valid sign-in who may do nothing here has tried.
Such a row says other things than one of a grant, because no grant was asked:
| Field | What it says |
|---|---|
| Who was refused | The account or the service. For an account its identifier stands below; the list can be searched by it. |
| Kind of caller | Account through a screen, service or service acting for an account. It says where the role is missing: for an account at the account; for a service at its client. When a service acts for an account, the permissions of the service count, not those of the account. |
| Operation of the API | Which operation of the interface was called, by the name its description gives it. |
| Missing permission | The permission the operation requires, such as pki.issuance-grant.manage. |
| To mend it | Where the role is missing. It is assigned in user administration, not in the PKI. |
| Count, last time | How often the same caller called the same operation within this hour, and when last. |
| Correlation | The identifier the refused request goes by in the log. The answer the caller got carries the same one. |
Repeats are counted, not repeated. The same caller at the same operation is one row within a full hour, and its count rises. Whoever asks a thousand times with a valid sign-in stands there with one row and the number 1000, and buries nothing of what else happened. Every single request stands in the PKI's log.
Nothing of the request is in the row: no name, no identifier, no content. The PKI turns the caller away before it reads the request.
Where the operation was an issuance, a key export, a subordination or a revocation, the row is filed under that operation even though only the permission was missing. The filter "key export" therefore shows everybody who tried to fetch a key, whatever stopped them.
Catalog of permissions missing is a reason of its own and says nothing about the caller: the PKI had not yet registered its permissions with the Identity Provider, shortly after a restart for instance, and until then no token carries any. The PKI's status names it, and the services ask again by themselves. If it stays, check the PKI's connection to the Identity Provider, not a role.
The reasons
The reason names the check that turned the request away — never the pattern. That is deliberate: the patterns are security policy and live in the grant, which only an administrator may read. An error message that reveals how far a pattern reaches tells a caller exactly what it is not supposed to know.
The checks run in the order below, and the reason given is always the first one that failed. Nothing is checked after it — so there may be more wrong than what is written there.
| Reason | What triggers it | Where to fix it |
|---|---|---|
| Permission missing | The token does not carry the permission of the operation. Refused before any grant was asked. | A role at the Identity Provider — refused before any grant was asked. |
| Catalog of permissions missing | The PKI had not yet registered its permissions with the Identity Provider. Says nothing about the caller. | Passes by itself; otherwise the PKI's connection to the Identity Provider — see above. |
| Token names no caller | The token carries no client_id. Usually a user token where a machine token belongs. | At the caller, not in the PKI. |
| No grant | There is no row for this id. | Create a grant — the client id. |
| Grant disabled | The row is there but suspended. | Suspending and deleting. |
| Profile does not exist | The profile asked for is unknown in this installation. | Profiles. |
| Profile not permitted | The profile exists, but no pattern in the grant matches its name. | Permitted profiles. |
| Issuing authority does not exist | The issuing authority asked for is unknown. | Certificates, subordinate authorities. |
| Issuing authority not permitted | The authority exists, but no pattern matches its name. | Permitted issuers. |
| Name not permitted | No name pattern matches the common name asked for. The commonest reason. | Permitted names and the pattern probe. |
| EUI not permitted | The request carries a device identity (EUI-64) that no name pattern of the grant matches. A reason of its own, because the name asked for may be permitted and the EUI attached to it not; over EST it sits in the request's subject alternative names. | Permitted names — the same patterns govern both. |
| Validity too long | More days were asked for than the grant allows. Nothing is cut down. | Maximum validity in the grant. |
| Key export not permitted | A private key was requested, and the caller does not hold the permission pki.private-key.export. | What the grant does not decide. |
| Subordination not permitted | Only in entries from before PKI 11: the grant permitted no subordination. Today the permission pki.authority.subordinate decides, and without it the PKI refuses without reading a grant. | Subordinate certificate authority. |
| Administrators only | An account without the permission of the operation asked for it through a screen whose grant permits it; or a service tried to revoke the certificate of an authority. | Whoever holds the permission does it. No grant mends this. | | Not issued through this caller | A service tried to revoke a certificate that was not issued through its client, or that names no client. | An administrator revokes it. | | Certificate does not exist | A service with a grant tried to revoke a certificate that does not exist. The answer to the caller does not say so. | At the caller: it sent an identifier nothing answers to. |
"Name not permitted" is the reason that comes up most often and least often means what it seems to on a first reading. In most cases the pattern is not wrong but written in the wrong notation — see permitted names. The pattern probe answers in ten seconds what reading the grant a second time does not.
One search field for caller and name
The search field above the list covers the caller and the name asked for at once. "Which of
my services is failing" starts from a client_id, "why will this device not enrol" from a common
name — and because a client id and a device name do not look alike, a term almost always matches
only one of the two columns. Reason and operation narrow further through the filters on their
columns.
The complete identifier of an account also finds everything that account was refused, through whichever screen or service. A part of the identifier finds nothing.
Coming from a grant there is a shorter way: the row action "refusals" shows the ten most recent for that one caller, with no need to copy the id anywhere first.