Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ User_Alias HIPAA_USERS = ansible, {% for user in dev_users.present -%}
{{ user }}
{%- if not loop.last %}, {% endif %}
{%- endfor %}, {{ cchq_user }}
User_Alias HIPAA_ACTOR = {{ cchq_user }}

Runas_Alias HIPAA_ACTOR = {{ cchq_user }}
Comment on lines +9 to 11
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defining User_Alias HIPAA_ACTOR makes the existing rule HIPAA_ACTOR ALL = (ALL) ALL (later in this file) become effective, which grants {{ cchq_user }} full sudo access (any command as any runas user). If the intent is only to allow the limited HQCOMMANDS set, consider narrowing/removing the broad (ALL) ALL rule, or add an explicit comment here explaining why full sudo is required for the HIPAA actor to avoid accidental over-privileging in the future.

Copilot uses AI. Check for mistakes.

Cmnd_Alias NGINX = /usr/sbin/nginx
Expand Down Expand Up @@ -38,6 +40,6 @@ root ALL=(ALL:ALL) ALL
# https://help.ubuntu.com/community/EnvironmentVariables#sudo_caveat
Defaults env_keep += "http_proxy https_proxy HTTP_PROXY HTTPS_PROXY no_proxy NO_PROXY"

{{ cchq_user }} ALL = (ALL) NOPASSWD: HQCOMMANDS
HIPAA_ACTOR ALL = (ALL) NOPASSWD: HQCOMMANDS
HIPAA_USERS ALL = (HIPAA_ACTOR) NOPASSWD: ALL
HIPAA_USERS ALL = (root) NOPASSWD: HQCOMMANDS
Loading