mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
feat(ssm): support agent-backed Session Manager sessions (#9492)
Session Manager for Linux EC2 guests running the stock SSM agent and the Session Manager plugin: interactive shells, SSH and port forwarding, with StartSession, ResumeSession, TerminateSession, DescribeSessions and GetConnectionStatus, and session document validation. Direct SendCommand execution on instances without the agent is unchanged. StartSession and GetConnectionStatus are checked on the EC2 target, and StartSession on the selected or default session document, read from the Session Manager guide and API reference pages vendored in tools/aws/sources/ssm-session-permissions.json. Replaces #9366, rebased onto main with the generated IAM table refreshed. On top of it, GetConnectionStatus echoes the Target it was asked about, as AWS answers. The agent's OpenDataChannel is checked on the session ARN, as the client's is, so a deny on one session reaches the instance role. Starting a session deletes the account's history older than the 30 days DescribeSessions lists. Closes #9365 Co-authored-by: James McMahon <james@jamesmcmahon.co.uk>
This commit is contained in:
1 parent
798c21df62
commit
05b77db069
52 files changed
+5656
-139
No files matched your search
@@ -54,6 +54,10 @@ starts() {
|
||||
# The image a test constant pins, or empty (and a log line) when the constant cannot be read.
|
||||
# TestImages is found by name rather than by its package path, which a package rename changes.
|
||||
TEST_IMAGES="$(find src/test/java -path '*/testing/TestImages.java' -print -quit)"
|
||||
if starts SsmSessionManagerDockerNightlyIntegrationTest; then
|
||||
pull debian:bookworm-slim
|
||||
pull postgres:17
|
||||
fi
|
||||
if starts Ec2PublishedConnectionNightlyIntegrationTest; then
|
||||
ecr public.ecr.aws/docker/library/alpine:latest
|
||||
pull alpine/socat
|
||||
|
||||
@@ -64,6 +64,9 @@ on:
|
||||
- 'tools/aws/sources/ec2-id-examples.json'
|
||||
- 'tools/aws/fetch_ec2_id_examples.py'
|
||||
- 'tools/aws/test_fetch_ec2_id_examples.py'
|
||||
- 'tools/aws/fetch_ssm_session_permissions.py'
|
||||
- 'tools/aws/sources/ssm-session-permissions.json'
|
||||
- 'tools/aws/test_fetch_ssm_session_permissions.py'
|
||||
- 'src/main/resources/aws/dynamodb-condition-keys.json'
|
||||
- 'tools/aws/regen_dynamodb_condition_keys.py'
|
||||
- 'tools/aws/test_regen_dynamodb_condition_keys.py'
|
||||
|
||||
Reference in new issue
Block a user