Repository navigation
v2.4.0
Overview
Continued improvements for the ECS server to support SSL/TLS (and with a hack, even the AWS CLI/boto3 SDK) and it's own self-signed CA. Users interested using the ECS server are strongly encouraged to review the documentation here to understand what this does and how to utilize it with properly with various AWS SDK's (boto3, Go, Java, NodeJS, .Net) and on different platforms (Linux, macOS, Windows)
New Features
- The release workflow now verifies the release tag matches
PROJECT_VERSIONin the Makefile
before building or uploading any files - Add
setup ecs ssl --self-signedto create a self-signed CA and leaf cert for the ECS Server,
scoped so it can't sign for other hosts; prints the CA's SHA-256 fingerprint for verification - Add
login --forceto start a new SSO session, resetting its duration #1455 - Add
ecs docker write-secrets - The ECS Server and
ecs load/list/profile/unloadnow log a warning if the
server's TLS cert has fewer than 5 days of validity left ecs servernow logs a warning at startup if--bind-ipis not127.0.0.1,::1, or
169.254.170.2-- TLS won't verify and AWS SDKs may silently drop the Bearer Token elsewhere- The ECS Server now logs invalid bearer-token attempts, request remote addresses, and TLS/server
errors, and logs successful credential fetches at Info instead of Debug
Bugs
- Fix
AuthWorkflow: device_codenever getting a refresh token, so sessions ended after 8 hours #1508 - Remove
--no-config-checkand--sts-refreshfrom the documentedloginflags #1451 - Fix documentation / examples related to using the ECS server with Docker Compose #1462
- Document
ssh -o ExitOnForwardFailure=yesto prevent another user on the remote host from
hijacking the forwarded ECS server port - Fix the ECS server container healthcheck failing when SSL/TLS is enabled, which left the
container permanently unhealthy and blockeddepends_on: service_healthy - Fix the Docker Compose example provisioning an SSL cert while connecting over
http://,
and show the bearer token being passed to the client container ecs docker stopno longer requires reading from the config/SecureStore- A SecureStore
SaveEcsSslKeyPair/SaveEcsCaKeyPairthat fails private key validation no longer
caches the cert in memory, avoiding a stale cert being read as if it were stored
Changes
- Remove
setup ecs ssl --certificate,--private-key,--print; only the internal
self-signed CA (--self-signed) is supported now setup ecs ssl --deletenow only deletes the SSL leaf cert/key; addsetup ecs ssl --delete-cato delete the CA, which requires the leaf to already be deleted- Remove
ecs server --disable-ssl,ecs docker start --disable-ssl, andecs docker write-secrets --disable-ssl-- SSL is now controlled by whether a certificate is stored
What's Changed
- Bump actions/stale from 10 to 11 by @dependabot[bot] in #1447
- Add
aws-sso login --forceto start a new SSO session by @mouchar in #1456 - Pin the Go toolchain and the golangci-lint path in the Makefile by @synfinatic in #1460
- Bump github.com/moby/moby/client from 0.5.0 to 0.5.1 by @dependabot[bot] in #1445
- Bump github.com/aws/aws-sdk-go-v2 from 1.43.0 to 1.43.4 by @dependabot[bot] in #1457
- Bump DavidAnson/markdownlint-cli2-action from 24 to 24.1.0 by @dependabot[bot] in #1452
- Bump golang from 1.26-alpine to 1.27-alpine by @dependabot[bot] in #1461
- Bump github.com/aws/smithy-go from 1.27.6 to 1.27.9 by @dependabot[bot] in #1458
- ecs: add 'docker write-config' command for Docker Compose users by @synfinatic in #1467
- Bump github.com/1password/onepassword-sdk-go from 0.4.0 to 0.4.1 by @dependabot[bot] in #1450
- Bump github.com/stretchr/testify from 1.11.1 to 1.12.1 by @dependabot[bot] in #1463
- Bump golang.org/x/net from 0.57.0 to 0.58.0 by @dependabot[bot] in #1464
- document ExitOnForwardFailure=yes by @synfinatic in #1468
- Fix ECS server healthcheck with SSL, and harden the SSH + Docker Compose docs by @synfinatic in #1469
- ecs docker stop doesn't need config/SecureStore by @synfinatic in #1473
- Add self signed by @synfinatic in #1474
- Warn when the ECS server's TLS cert is about to expire by @synfinatic in #1476
- Split setup ecs ssl --delete, add --delete-ca, remove --disable-ssl flags by @synfinatic in #1477
- Shorten Unreleased CHANGELOG entries to 1-2 lines by @synfinatic in #1478
- Rename ecs docker write-config to write-secrets by @synfinatic in #1479
- Remove flaky/unnecessary time.Sleep() calls from tests by @synfinatic in #1481
- Fix nil-pointer panic risk and XDG_CONFIG_HOME test-isolation gap by @synfinatic in #1480
- ecs client: warn locally when the server's TLS leaf cert is expiring soon by @synfinatic in #1483
- ecs server: warn if --bind-ip isn't a TLS/SSRF-safe address by @synfinatic in #1482
- ecs server: log security-relevant events for the credential server by @synfinatic in #1484
- Bump DavidAnson/markdownlint-cli2-action from 24.1.0 to 24.2.0 by @dependabot[bot] in #1475
- Bump github.com/moby/moby/client from 0.5.1 to 0.6.0 by @dependabot[bot] in #1486
- Bump github.com/alecthomas/kong from 1.16.0 to 1.16.1 by @dependabot[bot] in #1459
- Bump github.com/aws/smithy-go from 1.27.9 to 1.28.1 by @dependabot[bot] in #1471
- Bump github.com/aws/aws-sdk-go-v2 from 1.43.4 to 1.45.1 by @dependabot[bot] in #1472
- Bump github.com/moby/moby/api from 1.56.0 to 1.56.1 by @dependabot[bot] in #1485
- Bump golang.org/x/term from 0.45.0 to 0.46.0 by @dependabot[bot] in #1492
- Verify release tag matches Makefile PROJECT_VERSION by @synfinatic in #1497
- add eMudhra/go 1.26.10 fix in main branch by @synfinatic in #1494
- Fix flaky TestCreatedAt by @synfinatic in #1498
- Bump golang.org/x/term from 0.46.0 to 0.47.0 by @dependabot[bot] in #1503
- Bump golang.org/x/net from 0.58.0 to 0.61.0 by @dependabot[bot] in #1502
- Fix device_code login getting no refresh token (sessions end after 8 hours) by @RyoKusnadi in #1513
- Bump DavidAnson/markdownlint-cli2-action from 24.2.0 to 25.0.0 by @dependabot[bot] in #1512
- Bump github.com/jpillora/backoff from 1.0.0 to 1.1.0 by @dependabot[bot] in #1507
- Point ECS docs at the pending botocore CA bundle fix by @synfinatic in #1515
- prepare 2.4.0 release by @synfinatic in #1516
New Contributors
- @RyoKusnadi made their first contribution in #1513
Full Changelog: v2.3.2...v2.4.0