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

Add support to specify numeric gid for host_groups #40967

Open
programmerq opened this issue Apr 26, 2024 · 1 comment
Open

Add support to specify numeric gid for host_groups #40967

programmerq opened this issue Apr 26, 2024 · 1 comment
Labels
c-nx Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements ssh

Comments

@programmerq
Copy link
Contributor

What would you like Teleport to do?

When using automatic host user provisioning, it's possible to list host_groups that a user should belong to. It should be possible to specify the GID for these groups.

What problem does this solve?

If any group listed in a user's host_groups don't exist, it is created by calling groupadd. This means the numeric GID can be inconsistent across hosts for the same group name, since groupadd will always take the next available GID slot.

If a workaround exists, please include it.

All workarounds involve manual steps.

@programmerq programmerq added feature-request Used for new features in Teleport, improvements to current should be #enhancements ssh c-nx Internal Customer Reference labels Apr 26, 2024
@webvictim
Copy link
Contributor

IIUC this is the same thing that spec.allow.host_user_gid does, but the request is for it to support a GID per group?

Pseudo-role example:

spec:
  allow:
    host_groups:
    - group: group1
      gid: 1001
    - group: group2
      gid: 1004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-nx Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements ssh
Projects
None yet
Development

No branches or pull requests

2 participants