aws / aws/amazon-ssm-agent

Guidance: Security Hub ECS.5 | ECS containers should be limited to read-only access to root filesystems

Open
#588 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

I'm running the SSM Agent within a ECS Fargate task (https://github.com/willfarrell/aws-bastion). I'm trying to update it to meet AWS Security Hub ECS.5 (ECS containers should be limited to read-only access to root filesystems) that requires the task definition to have `readonlyRootFilesystem: true`.

I've added in `/etc/amazon/ssm/seelog.xml` with the below xml to have logs store `/tmp`.

```xml






```

However, it continue to send logs to the default location (`/var/log/amazon/ssm/*.log`) instead of `/tmp/*.log`. Not sure if this is a bug or a misconfiguration on my side. Any guidance would be appreciated.

Contributor guide

Open the contributing guide

Research direction

Start with the SSM Agent logging configuration at /etc/amazon/ssm/seelog.xml and compare it with the default /var/log/amazon/ssm/*.log paths when running in an ECS Fargate task with readonlyRootFilesystem enabled. Reproduce the configuration and verify whether logs are written to the requested /tmp/*.log files; done means the configured paths are honored or the required configuration guidance is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cloud, observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.