builder icon indicating copy to clipboard operation
builder copied to clipboard

Personal access token generation

Open raskchanky opened this issue 6 years ago • 8 comments

Previously, when builder supported GH access tokens as a means of authentication, the HTTP API was relatively easy to use from the command line via curl. As an engineer that works on Builder's HTTP API, this is something I do frequently.

Currently, now that we have switched to personal access tokens and GH access tokens no longer work, I have to log into the web UI and go to my profile in order to generate a personal access token. This is not a huge deal, but when standing up new depots on e.g. EC2, there's a non-trivial amount of setup that needs to happen in order to get the web UI working.

It would be incredibly awesome if there was a way to generate personal access tokens from the command line, either via hab itself or through an HTTP API endpoint.

raskchanky avatar Apr 20 '18 04:04 raskchanky

We have a card to enable the op tool to generate admin tokens, which can then be used for this use case - see https://app.zenhub.com/workspace/o/habitat-sh/builder/issues/315

chefsalim avatar Apr 24 '18 17:04 chefsalim

Re-opening as the op tool is deprecated, and this functionality will be useful in automating on-prem setups

chefsalim avatar Nov 28 '18 22:11 chefsalim

The need to login to the Builder UI is problematic in many environments where you may want to set up an on-premises Builder. What are the implication of bringing back the ability to get an auth token via the command line? I agree with the original @raskchanky that this would make sense in the hab cli.

stephenlauck avatar Aug 13 '19 15:08 stephenlauck

Working on automating on-prem builder via A2 now and also hit this. Would love to have the ability to do this via CLI/automation!

stevenoneill-jmfamily avatar Mar 10 '20 22:03 stevenoneill-jmfamily

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Mar 12 '21 03:03 stale[bot]

This is definitely something that would still be useful.

sirajrauff avatar Mar 12 '21 16:03 sirajrauff

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Jul 31 '22 07:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Sep 17 '23 00:09 stale[bot]