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

Outline minimal policies for nf-nomad cluster setup #61

Open
abhi18av opened this issue Jul 4, 2024 · 3 comments
Open

Outline minimal policies for nf-nomad cluster setup #61

abhi18av opened this issue Jul 4, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@abhi18av
Copy link
Member

abhi18av commented Jul 4, 2024

Looks good!
Later we can add some more specific policies to test with minimal permissions

Originally posted by @jhaezebr in #57 (review)

@abhi18av
Copy link
Member Author

abhi18av commented Jul 4, 2024

Hi @jhaezebr , could you please outline the specific minimal policies here that you think will be needed for running the cluster.

Ideally, we should not bake in any policy which is from user perspective i.e. we should not have hard assumptions.

I have been thinking about this subject as well and from the use case the university cluster, what we'd need is that specific users/groups should be able to use a specific node for execution.

What's the best way to achieve this?

CC @jagedn

@jhaezebr
Copy link
Collaborator

jhaezebr commented Jul 4, 2024

For the use case of nf-nomad, I'd suggest a policy with minimal permissions, just enough so that nextflow can run jobs in a single namespace.

If I understand your usecase for your university cluster correctly, you want to restrict usage of specific nodes to specific user/groups? (eg: group 1 can submit jobs to node A and B, while group 2 can submit to node C ?)
As far as I understand you would need an enterprise license for that. Then you could link a namespace to one or more nodes, and then give users access to that namespace. ( https://developer.hashicorp.com/nomad/docs/concepts/node-pools#node-pool-governance ). But I'm not familiar with that usecase as we do not have an enterprise license.

@jagedn jagedn added the enhancement New feature or request label Jul 6, 2024
@abhi18av abhi18av linked a pull request Jul 15, 2024 that will close this issue
@abhi18av abhi18av removed a link to a pull request Jul 15, 2024
@abhi18av
Copy link
Member Author

From #56 (comment)

namespace "nextflow" {
  policy = "write"
  capabilities = [
    "csi-write-volume",
    "csi-read-volume",
    "csi-list-volume",
    "csi-mount-volume"
  ]
}

agent {
  policy = "deny"
}

operator {
  policy = "deny"
}

quota {
  policy = "deny"
}

node {
  policy = "deny"
}

host_volume "*" {
  policy = "deny"
}

plugin {
  policy = "read"
}

@abhi18av abhi18av added the documentation Improvements or additions to documentation label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants