Skip to main content

Module sessions

Module sessions 

Source
Expand description

The sessions srv has minted for container agents, and how often it may mint (spec §8).

The AWS CLI calls credential_process on every command, and botocore treats credentials with under ten minutes left as expired, so a session is handed out again only while at least REUSE_MARGIN remains, and a request that finds none mints. One mint at a time per (agent, grant, reason): concurrent requests wait for the same result.

Structs§

Sessions

Enums§

SessionError
Source
Whether the answer is a session that was already there.

Constants§

REUSE_MARGIN
Credentials with less than this left are not handed out again.

Functions§

global
srv’s sessions: one cache for the process.