Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI : If alloc-exec is allowed, clicks and web UI are executed, although disabled #18382

Closed
Great-Stone opened this issue Sep 4, 2023 · 3 comments

Comments

@Great-Stone
Copy link

Nomad version

nomad 1.6.1

Operating system and Environment details

ubuntu 20.04

Issue

The alloc-exec was applied, but the button is disabled, which is how it appears. However, clicking it will execute the exec.

Reproduction steps

namespace "*" {
  policy = "write"
  capabilities = [
    "list-jobs",
    "parse-job",
    "read-job",
    "submit-job",
    "dispatch-job",
    "read-logs",
    "read-fs",
    "alloc-exec",
    "alloc-lifecycle",
    "csi-write-volume",
    "csi-mount-volume",
    "list-scaling-policies",
    "read-scaling-policy",
    "read-job-scaling",
    "scale-job"
  ]
  variables {
    path "*" {
      capabilities = ["read"]
    }
  }
}

Expected Result

If alloc-exec is allowed, the UI will show it as enabled.

Actual Result

If alloc-exec is allowed, clicks and web UI are executed, although disabled in the UI

Job file (if appropriate)

Nomad Server logs (if appropriate)

Nomad Client logs (if appropriate)

@jrasell jrasell self-assigned this Sep 5, 2023
@jrasell
Copy link
Member

jrasell commented Sep 5, 2023

Hi @Great-Stone, would you be able to provide more details on your configuration and how to reproduce this? I have been unable to reproduce this locally on either 1.6.1 or 1.6.2-dev.

I ran a local Nomad agent using the dev mode with ACL's enabled and bootstrapped, and ran an example job. I then created an ACL policy using the specification you posted and created an ACL token linked to this policy. I took the created ACL token and used this within the Nomad UI to sign in. When navigating to the job task group page, the exec button is available and works as expected.

@jrasell
Copy link
Member

jrasell commented Sep 20, 2024

Closing this as per the resolution comment in #18381 and because there has been no updated comment here. If this is still an issue, please feel free to reopen or create a new issue.

Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

2 participants