Skip to content

Add ECS server#556

Merged
mtibben merged 6 commits into
masterfrom
ecs-server-2
Apr 19, 2020
Merged

Add ECS server#556
mtibben merged 6 commits into
masterfrom
ecs-server-2

Conversation

@mtibben

@mtibben mtibben commented Apr 18, 2020

Copy link
Copy Markdown
Member

Rebases #375

AWS SDKs universally support the ECS Credential Service, which supports
reading the service URI from environment variables.

Providing an http interface allows the subprocess to refresh credentials
as long as the master credentials session is valid.

Supporting the ECS Credential provider offers the following advantages
over the EC2 Metadata provider:

  • Binding to a random, ephimeral port
    • Does not require adminstrator privileges
    • Allows multiple providers simultaneously for discrete processes
    • Partially mitigates the security issues that accompany the EC2
      Metadata Service because the address is not well-known
  • Requiring an Authorization token further mitigates the potential for
    another process to access the credentials, since the Authorization
    token is only exposed to the subprocess via environment variables

mtibben and others added 3 commits April 18, 2020 23:50
AWS SDKs universally support the ECS Credential Service, which supports
reading the service URI from environment variables.

Providing an http interface allows the subprocess to refresh credentials
as long as the master credentials session is valid.

Supporting the ECS Credential provider offers the following advantages
over the EC2 Metadata provider:

- Binding to a random, ephimeral port
  - Does not require adminstrator privileges
  - Allows multiple providers simultaneously for discrete processes
  - Partially mitigates the security issues that accompany the EC2
    Metadata Service because the address is not well-known
- Requiring an Authorization token further mitigates the potential for
  another process to access the credentials, since the Authorization
  token is only exposed to the subprocess via environment variables
@mtibben mtibben merged commit ec402aa into master Apr 19, 2020
@mtibben mtibben deleted the ecs-server-2 branch April 19, 2020 03:50
@mtibben

mtibben commented Apr 19, 2020

Copy link
Copy Markdown
Member Author

Thank you @jstewmon, this is way better than the current ec2 server. Next question, should we make --ecs-server the default, and how should we role that out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants