issueJoinToken: (
request: any,
) =>
| {
agentSpiffeId?: undefined;
errorCode: string;
expiresAt?: undefined;
message: string;
ok: boolean;
status: any;
token?: undefined;
}
| {
agentSpiffeId: any;
errorCode?: undefined;
expiresAt: any;
message?: undefined;
ok: boolean;
status?: undefined;
token: any;
} = ...
Type Declaration
-
- (
request: any,
):
| {
agentSpiffeId?: undefined;
errorCode: string;
expiresAt?: undefined;
message: string;
ok: boolean;
status: any;
token?: undefined;
}
| {
agentSpiffeId: any;
errorCode?: undefined;
expiresAt: any;
message?: undefined;
ok: boolean;
status?: undefined;
token: any;
}
-
Returns
| {
agentSpiffeId?: undefined;
errorCode: string;
expiresAt?: undefined;
message: string;
ok: boolean;
status: any;
token?: undefined;
}
| {
agentSpiffeId: any;
errorCode?: undefined;
expiresAt: any;
message?: undefined;
ok: boolean;
status?: undefined;
token: any;
}
{ ok: true, token, expiresAt, agentSpiffeId }, or
{ ok: false, errorCode, status, message }
Mints one join token into this realm's store.
A non-positive
ttlusesspiffe.joinTokenTtl. AnagentIdis the alias SPIRE registers, parented on the agent the token will attest, and is checked before the token exists. The token itself is returned once and stored only as a digest.