nokku.v1.GetSubjectAccessResponse
objectAt most one of `user`, `serviceAccount` may be set.
targets?daemons?certificateAuthority?certificate_authority is the workspace's, for a subject with targets to log in to.
id?userPublicKey?hostPublicKey?rotatedAt?Unset until the first rollover.
userTtl?What a person's certificate lasts. A machine and a server set up with nk sync get an hour at most.
createdAt?A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.
updatedAt?A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.
sourceAddress?source_address lists where people log in from. A service account has a list of its own.
userPublicKeyFingerprint?What ssh-keygen -lf prints for each key.
hostPublicKeyFingerprint?user?id?name?email?picture?role?active?pendingEmail?createdAt?A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.
updatedAt?A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.
scimManaged?serviceAccount?id?name?description?role?tags?lastUsedAt?A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.
createdAt?A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.
updatedAt?A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.
forceCommand?force_command replaces what a login asks to run. source_address lists the addresses a login may come from. Both go on the account's certificates, and the CA's own settings don't.
sourceAddress?Example
{
"targets": [
{
"id": "string",
"daemonId": "string",
"name": "string",
"description": "string",
"hostPublicKey": "string",
"tags": [
"string"
],
"endpoints": [
"string"
],
"usernames": [
"string"
],
"accounts": [
{
"id": "string",
"targetId": "string",
"username": "string",
"userIds": [
"string"
],
"teamIds": [
"string"
],
"serviceAccountIds": [
"string"
],
"createdAt": "2023-01-15T01:30:15.01Z",
"seenAt": "2023-01-15T01:30:15.01Z",
"expiresAt": {
"property1": "2023-01-15T01:30:15.01Z",
"property2": "2023-01-15T01:30:15.01Z"
}
}
],
"metadata": {
"property1": "string",
"property2": "string"
},
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"lastSyncAt": "2023-01-15T01:30:15.01Z",
"usernameExpiresAt": {
"property1": "2023-01-15T01:30:15.01Z",
"property2": "2023-01-15T01:30:15.01Z"
},
"blocked": "ACCESS_BLOCK_UNSPECIFIED",
"daemon": {
"id": "string",
"name": "string",
"online": true,
"status": "DAEMON_STATUS_UNSPECIFIED",
"config": {
"recordSessions": true,
"allowForwarding": true,
"allowAgentForwarding": true,
"gatewayPorts": true,
"ephemeral": true,
"idleTimeout": "string"
},
"updatedAt": "2023-01-15T01:30:15.01Z",
"createdAt": "2023-01-15T01:30:15.01Z",
"lastSeenAt": "2023-01-15T01:30:15.01Z",
"version": "string",
"behindSince": "2023-01-15T01:30:15.01Z"
}
}
],
"daemons": [
{
"id": "string",
"name": "string",
"online": true,
"status": "DAEMON_STATUS_UNSPECIFIED",
"config": {
"recordSessions": true,
"allowForwarding": true,
"allowAgentForwarding": true,
"gatewayPorts": true,
"ephemeral": true,
"idleTimeout": "string"
},
"updatedAt": "2023-01-15T01:30:15.01Z",
"createdAt": "2023-01-15T01:30:15.01Z",
"lastSeenAt": "2023-01-15T01:30:15.01Z",
"version": "string",
"behindSince": "2023-01-15T01:30:15.01Z"
}
],
"certificateAuthority": {
"id": "string",
"userPublicKey": "string",
"hostPublicKey": "string",
"rotatedAt": "2023-01-15T01:30:15.01Z",
"userTtl": "string",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"sourceAddress": "string",
"userPublicKeyFingerprint": "string",
"hostPublicKeyFingerprint": "string"
},
"user": {
"id": "string",
"name": "string",
"email": "string",
"picture": "string",
"role": "WORKSPACE_ROLE_UNSPECIFIED",
"active": true,
"pendingEmail": "string",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"scimManaged": true
},
"serviceAccount": {
"id": "string",
"name": "string",
"description": "string",
"role": "WORKSPACE_ROLE_UNSPECIFIED",
"tags": [
"string"
],
"lastUsedAt": "2023-01-15T01:30:15.01Z",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"forceCommand": "string",
"sourceAddress": "string"
}
}