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 data sources for creating Infra credentials #17

Open
mxyng opened this issue Dec 16, 2022 · 1 comment
Open

add data sources for creating Infra credentials #17

mxyng opened this issue Dec 16, 2022 · 1 comment

Comments

@mxyng
Copy link
Collaborator

mxyng commented Dec 16, 2022

As a user, I want to use the Terraform Infra provider to authenticate with a Kubernetes cluster, given the cluster is registered with Infra server.

The registration process requires deploying an Infra connector to the cluster which requires access to the cluster. This limits the usefulness of Infra as a Terraform Kubernetes credential provider since it requires a two step process. This would be useful for distributed configurations where an admin installs the connector and gives individual users/groups access. Those non-admins, not having the root cluster credentials, can then use Infra to access the cluster.

Currently, credentials are created with an immutable lifetime of 5 minutes. While this is sufficient for something like kubectl where each request can potentially request a new set of credentials, Terraform will create the credential once when the Terraform configuration is applied. With a sufficiently large Terraform plan, the credential may expire partway through the plan.

Relates to #16

@log1cb0mb
Copy link

@mxyng Any updates on this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants