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

Support adding Nested Access Lists as Members to Access Lists via Terraform. #49249

Open
benarent opened this issue Nov 20, 2024 · 0 comments
Open
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo

Comments

@benarent
Copy link
Contributor

benarent commented Nov 20, 2024

What would you like Teleport to do?

We currently don't support adding Members to access lists. https://goteleport.com/docs/reference/terraform-provider/data-sources/access_list/

We have perviously said we don't support this, due to the required manager flow. Since we now support nested access lists. I think we should support them via IaC, especially due to the complexity of nested lists.

Please note that Access Lists can be managed via IaC but Access List memberships cannot. The goal of Access Lists is to decentralize granting and reviewing access.

# Company-Wide Access List
resource "teleport_access_list" "company_wide" {
  header = {
    version = "v1"
    metadata = {
      name = "company-wide"
      labels = {
        organization = "primary"
      }
    }
  }
  spec = {
    description = "Top-level company-wide access controls"
    title = "Company-Wide Access"
    
    ownership_requires = {
      roles = ["access"]
    }
    
    membership_requires = {
      roles = ["access"]
    }
    
    owners = [
      {
        name = "benarent"
        description = "Company admin"
      }
    ]

+    members = [
+      {
+        access_list = "SRE Team"
+        description = "SRE Team Access List"
+      }
+    ]
    
    grants = {
      roles = ["base-access"]
      traits = [{
        key    = "company-resources"
        values = ["internal-tools", "documentation"]
      }]
    }
    

  }
}

What problem does this solve?

If a workaround exists, please include it.

@benarent benarent added feature-request Used for new features in Teleport, improvements to current should be #enhancements terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo labels Nov 20, 2024
@benarent benarent changed the title Support adding Access List Members to Access Lists via Terraform. Support adding Nested Access Lists as Members to Access Lists via Terraform. Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo
Projects
None yet
Development

No branches or pull requests

1 participant