check: (
given: Record<string, any>,
selfDn?: string,
) =>
| Refusal
| {
destination: string;
ok: true;
owners: ServiceAccountOwner[];
secretName: string;
} = ...
Type Declaration
-
- (
given: Record<string, any>,
selfDn?: string,
):
| Refusal
| {
destination: string;
ok: true;
owners: ServiceAccountOwner[];
secretName: string;
}
-
Parameters
- given: Record<string, any>
OptionalselfDn: string
Returns
| Refusal
| {
destination: string;
ok: true;
owners: ServiceAccountOwner[];
secretName: string;
}
{ ok: true, owners, destination, secretName }, or a refusal
Checks what would make an entry a service account, without writing: the owners (each a person or a group in this realm, never
selfDn; at most MAX_OWNERS; at least one while the policy'srequireOwneris on), and the destination with the secret's name, both or neither. Asked byset(), and by the console's and the API's create BEFORE the person exists, so a refused account is never left behind as an ordinary person.