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

Not enough permission In Org token #92

Open
tsunamishaun opened this issue Mar 19, 2021 · 4 comments
Open

Not enough permission In Org token #92

tsunamishaun opened this issue Mar 19, 2021 · 4 comments
Labels
bug Something isn't working upstream-tfc

Comments

@tsunamishaun
Copy link
Contributor

tsunamishaun commented Mar 19, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

terraform-k8s & Kubernetes Version

v1.0.0

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your Terraform configuration from the operator here.
# To retrieve the configuration, use `kubectl -n $NAMESPACE describe configmap $WORKSPACE_NAME`

Debug Output

2021-03-19T17:53:11.033Z	ERROR	controller	Reconciler error	{"controller": "workspace-controller", "name": "tf-data", "namespace": "yarblar", "error": "Error while assigning ssh key to workspace: resource not found"}

Expected Behavior

Org token should provide enough permission for operator to run. There doesn't appear to be much granularity for resources like sshkey and agent pool but if there was this routine would only need list. Additionally this might be an issue for upstream tfc, wanted to get some advice on this?

Actual Behavior

Org tokens (at least in my findings) lack the permission to list SSH Keys.

Steps to Reproduce

Run the operator with an Org token

Important Factoids

References

https://github.com/hashicorp/terraform-k8s/blob/master/workspacehelper/tfc_org.go#L205

@tsunamishaun tsunamishaun added the bug Something isn't working label Mar 19, 2021
@aareet
Copy link
Contributor

aareet commented Apr 13, 2021

Hi @tsunamishaun, as you guessed, this is feedback for upstream TFC since we don't control the org token's permissions.

@tsunamishaun
Copy link
Contributor Author

Hey @aareet ! Thanks for the response! I'll go ahead and bring this up with our tfc contacts, maybe they can help get something tracked. Also, was there a more current slack/discord for this project? The one listed on the main page is the cncf catch all for the tf provider. Thanks again!

@aareet
Copy link
Contributor

aareet commented Apr 13, 2021

Thanks :) We're actually quite active on the CNCF slack, in the #terraform-providers channel so I'd say that's the most current.

@aareet
Copy link
Contributor

aareet commented Apr 13, 2021

@redeux also has a Calendly link on his profile and welcomes feedback from folks who want to share their use cases/asks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream-tfc
Projects
None yet
Development

No branches or pull requests

2 participants