Skip to content

Harden access for the ansible user #3

@billglick

Description

@billglick

Review config files to harden and restrict what the ansible user can do.

For example:

  • Add restrictions like the following to the sshd match block:
  KbdInteractiveAuthentication no
  PermitTTY no
  PermitTunnel no
  GatewayPorts no
  • Review access.conf settings for the user ansible. Perhaps add something like:
- : ansible : tty
  • Review sudoers config for user Ansible. Maybe add:
Defaults:ansible !requiretty
Defaults:ansible secure_path=/usr/sbin:/usr/bin:/sbin:/bin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions