Page MenuHomePhabricator

Allow API tokens to be added to arcrc
AbandonedPublic

Authored by cinek on Oct 14 2015, 12:40 PM.
Referenced Files
F13088226: D14275.diff
Thu, Apr 25, 1:20 AM
Unknown Object (File)
Fri, Apr 19, 2:22 AM
Unknown Object (File)
Fri, Apr 19, 2:22 AM
Unknown Object (File)
Wed, Apr 17, 2:46 PM
Unknown Object (File)
Thu, Apr 11, 3:42 AM
Unknown Object (File)
Wed, Mar 27, 9:28 PM
Unknown Object (File)
Mar 13 2024, 8:55 PM
Unknown Object (File)
Mar 4 2024, 4:39 PM
Subscribers

Details

Summary

When generating conduit tokens for bot users, one gets an API token with prefix
"api-". With this trivial fix arc install-certificate allows such tokens to
be set up in ~/.arcrc.

This commit fixes T8143.

Test Plan
  • Started arc install-certificate.
  • Generated API token at https://phabricator.domain.org/settings/panel/apitokens/.
  • Pasted API token to arc prompt.
  • Verified that API token showed up in ~/.arcrc.

Diff Detail

Repository
rARC Arcanist
Branch
fixT8143
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8274
Build 9477: arc lint + arc unit

Event Timeline

cinek retitled this revision from to Allow API tokens to be added to arcrc.
cinek updated this object.
cinek edited the test plan for this revision. (Show Details)
cinek added a reviewer: epriestley.
epriestley edited edge metadata.

It's intentional that you can't add api- tokens via this workflow. Use --conduit-token. I don't intend to bring this change or any similar change upstream.

This revision now requires changes to proceed.Nov 2 2015, 4:42 PM

It's OK. I can still add the API tokens for bots manually to the configuration. I don't like users to see them in ps output.