Skip to content

Add optional UID argument to bosh-enable-monit-access command#416

Closed
mariash wants to merge 1 commit intomainfrom
add-uid-arg
Closed

Add optional UID argument to bosh-enable-monit-access command#416
mariash wants to merge 1 commit intomainfrom
add-uid-arg

Conversation

@mariash
Copy link
Member

@mariash mariash commented Feb 27, 2026

Add optional UID argument to bosh-enable-monit-access command

)

func EnableMonitAccess(logger boshlog.Logger, command string) {
func EnableMonitAccess(logger boshlog.Logger, command string, args []string) {
Copy link
Member

Choose a reason for hiding this comment

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

Why a slice of args and not just the first one as uid?

@abg
Copy link
Member

abg commented Mar 2, 2026

I wonder if we should just hardcode the vcap user? I did something along those lines in #417 (see this code) which overlaps and conflicts with this change.

That's essentially what's being proposed in cloudfoundry/bosh-linux-stemcell-builder#481 but can be made more explicit in the bosh-agent code, leaving monit-access-helper.sh a very simple delegation.

@mariash
Copy link
Member Author

mariash commented Mar 2, 2026

Closing this one in favor of #417. Using cgroups is preferred over UID

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants