Skip to content

Add Alloy support to Rocky nodes#664

Open
jb3 wants to merge 3 commits into
mainfrom
jb3/ldap01-alloy
Open

Add Alloy support to Rocky nodes#664
jb3 wants to merge 3 commits into
mainfrom
jb3/ldap01-alloy

Conversation

@jb3
Copy link
Copy Markdown
Member

@jb3 jb3 commented May 25, 2026

  • Add Rocky repositories for Grafana projects, so we can install Alloy
  • Set new binary permissions for Alloy to allow reading of all files regardless of read permissions
  • Enable live debugging features in Alloy
  • Pull out systemd unit as a new label for better filtering in Loki

@github-actions github-actions Bot added the group: ansible Issues and pull requests related to the Ansible setup label May 25, 2026
@jb3 jb3 force-pushed the jb3/ldap01-alloy branch 2 times, most recently from bd6cd24 to dc70e54 Compare May 25, 2026 17:42
@jb3 jb3 force-pushed the jb3/ldap01-alloy branch from dc70e54 to d7e8750 Compare May 25, 2026 18:32
Comment thread ansible/roles/alloy/tasks/main.yml
# We need to add cap_dac_read_search=+ep to the Alloy binary.

- name: Get Alloy binary path
command: "which alloy"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you know if ansible sanitizes PATH (or does not preserve it from the user it's escalating from)? If not, something malicious modifying PATH on the profile of whoever deploys could cause this to set cap_dac_read_search on the binary.

- role::alloy

- name: Set capabilities on the Alloy binary
command: "setcap cap_dac_read_search=ep {{ alloy_binary_path.stdout }}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can't this be done via systemd?

man systemd.exec, see AmbientCapabilities. That way we can remove this whole dance and just set it in the service, no?

Comment on lines +7 to +10
livedebugging {
enabled = true
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this not expose sensitive information in some way that I'm missing? Judging by the Grafana docs, this relates to the Alloy UI. I haven't followed the deployment - do we expose that somewhere?

@github-project-automation github-project-automation Bot moved this from Up next to In Progress in Infrastructure May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

group: ansible Issues and pull requests related to the Ansible setup

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants