授予 dcos 任务执行的访问权限

ENTERPRISE

BETA

授予调试的访问权限

您可以授予用户访问容器以进行调试会话的权限。

先决条件:

所有 CLI 命令也可通过 IAM API 执行。您可以在 CLI 命令参考部分看到更多有关 dcos security org users 命令的详细信息。

宽容

向用户 uid 授予以下特权。

  1. dcos security org users grant <uid> dcos:adminrouter:ops:mesos full
  2. dcos security org users grant <uid> dcos:adminrouter:ops:slave full

严格

使用 strict 安全模式,您可以控制用户是否可以启动交互式调试会话。您也可以限制用户可以访问哪些容器进行调试。这可以确保用户无法在不与其相关的容器中执行任意命令。

授予非伪终端调试访问权限

向用户 uid 授予以下特权。

  1. dcos security org users grant <uid> dcos:adminrouter:ops:mesos full
  2. dcos security org users grant <uid> dcos:adminrouter:ops:slave full
  3. dcos security org users grant <uid> dcos:mesos:agent:container:app_id:/test-group read --description "Grants a user permission to attach to the input of any process running inside of a container in test-group."
  4. dcos security org users grant <uid> dcos:mesos:agent:nested_container_session:app_id:/test-group create --description "Grants a user permission to attach to the input of any process running inside of a container in test-group."
  5. dcos security org users grant <uid> dcos:mesos:master:executor:app_id:/test-group read --description "Controls access to executors running inside test-group"
  6. dcos security org users grant <uid> dcos:mesos:master:framework:role:* read --description "Controls access to frameworks registered with the Mesos default role"
  7. dcos security org users grant <uid> dcos:mesos:master:task:app_id:/test-group read --description "Controls access to tasks running inside test-group"

授予伪终端调试访问权限

向用户 uid 授予以下特权。

  1. dcos security org users grant <uid> dcos:adminrouter:ops:mesos full
  2. dcos security org users grant <uid> dcos:adminrouter:ops:slave full
  3. dcos security org users grant <uid> dcos:mesos:agent:container:app_id:/test-group read --description "Grants a user permission to attach to the input of any process running inside of a container in test-group."
  4. dcos security org users grant <uid> dcos:mesos:agent:container:app_id:/test-group update
  5. dcos security org users grant <uid> dcos:mesos:agent:nested_container_session:app_id:/test-group create --description "Grants a user permission to launch a container inside a container in test-group."
  6. dcos security org users grant <uid> dcos:mesos:master:executor:app_id:/test-group read --description "Controls access to executors running inside test-group"
  7. dcos security org users grant <uid> dcos:mesos:master:framework:role:* read --description "Controls access to frameworks registered with the Mesos default role"
  8. dcos security org users grant <uid> dcos:mesos:master:task:app_id:/test-group read --description "Controls access to tasks running inside test-group"