Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Prevent Agent Nodes' Unprivileged Users From Accessing EC2 Metadata #37

@ferricoxide

Description

@ferricoxide

Problem Description:

Currently, unprivileged users on agent nodes can access EC2 metadata. Given that the agent nodes and master nodes frequently are deployed using the same Instance-role, this can allow unprivileged users on the agent nodes from leveraging powers that should only be accessible from processes on the master node.

Expected Behavior:

Master and agent nodes can share an instance-role but not inherit all the same capabilities (particularly by non-privileged users)

Actual Behavior:

Unprivileged processes running on master and agent nodes sharing an instance-role inherit all the same capabilities.

Fix recommendation:

See ServerFault thread for ideas on preventing unprivileged users from gaining access to a hosting-instance's AWS metadata.

Alternately, create an agent-specific role-template that removes access to the S3 resources (and ensure agents only have that role attached).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions