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

[Feature Request] Organization Secrets #468

Closed
ejhayes opened this issue May 18, 2020 · 16 comments · Fixed by #584
Closed

[Feature Request] Organization Secrets #468

ejhayes opened this issue May 18, 2020 · 16 comments · Fixed by #584

Comments

@ejhayes
Copy link

ejhayes commented May 18, 2020

Thanks for rolling out support for secrets in #362. It looks like secrets are now supported at the organization level but this does not yet look to be supported by terraform:

https://github.blog/changelog/2020-05-14-organization-secrets/

API documentation:
https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key

Adding support for this would be greatly appreciated!

@cj-taylor
Copy link

@ejhayes this looks to require a version upgrade of go-github in terraform-provider-github once Organization Secrets is made available in go-github. I tagged this issue in the Pull Request in go-github where I'm proposing the changes. google/go-github#1532

Once merged and available, I'll take a pass at the implementation in terraform-provider-github to address this issue!

@nikolay
Copy link
Contributor

nikolay commented May 28, 2020

They just merged it, so, the library now support organization secrets.

@patrickmarabeas
Copy link
Contributor

Rather than setting a plaintest_value, would it be possible to stipulate the env var holding the secret? This would probably allow the secret to remain out of the state file all together.

I'm planning on testing the theory out on resource_github_actions_secret when I get the change, but thought it would be good to call it out here prior to any development being kicked off.

@sc250024
Copy link

sc250024 commented Jun 9, 2020

Yes please!

@nikolay
Copy link
Contributor

nikolay commented Jun 11, 2020

Any update?

@cj-taylor
Copy link

PR for bumping the go-github version is still pending via https://github.com/terraform-providers/terraform-provider-github/pull/475

I have a local branch where I had built on top of that, but until that is merged in, we'll be in a holding pattern here!

@patrickmarabeas
Copy link
Contributor

patrickmarabeas commented Jun 18, 2020

Referencing a POC PR to add RSA public key encryption as an option to github_actions_secret. Since this will basically be the same resource, thoughts? - #495

@ejhayes
Copy link
Author

ejhayes commented Jul 8, 2020

Checking in to see if there's any eta on when https://github.com/terraform-providers/terraform-provider-github/pull/475. Would be great to see this functionality available!

@andrew-waters
Copy link

https://github.com/terraform-providers/terraform-provider-github/pull/475 has taken in the latest go-github release which should have addressed the acceptance test failures fixed by @anGie44 in google/go-github#1571.

@cj-taylor hopefully this will unblock you on the functional side of this feature

@ejhayes
Copy link
Author

ejhayes commented Jul 24, 2020

@cj-taylor looks like #475 is approved and just needs to be merged in. Think you’ll be able to add your changes in?

@nikolay
Copy link
Contributor

nikolay commented Oct 9, 2020

@jcudit Any ETA on when this will get released?

@jcudit
Copy link
Contributor

jcudit commented Oct 9, 2020

@nikolay Thanks for the ping. Early next week is likely.

@jcudit
Copy link
Contributor

jcudit commented Oct 19, 2020

The required go-github changes are merged in. Would ❤️ a PR for this one if anyone has the time. Will otherwise queue this behind the v3.1.1 to get an implementation up for review.

@nikolay
Copy link
Contributor

nikolay commented Oct 19, 2020

@jcudit I am a newbie in this space, but if there's nobody else to volunteer, I can give it a try.

@ejhayes
Copy link
Author

ejhayes commented Nov 23, 2020

Thank you @jacobfoard!!!

@nikolay
Copy link
Contributor

nikolay commented Nov 24, 2020

Thank you! At last! I hope this gets released ASAP!

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

Successfully merging a pull request may close this issue.

7 participants