Page MenuHomePhabricator

Allow API tokens to be added to arcrc
AbandonedPublic

Authored by cinek on Oct 14 2015, 12:40 PM.
Referenced Files
F15518210: D14275.id.diff
Sat, Apr 19, 12:00 PM
F15515586: D14275.diff
Fri, Apr 18, 11:39 AM
F15511830: D14275.id34457.diff
Thu, Apr 17, 5:47 AM
F15511829: D14275.id.diff
Thu, Apr 17, 5:47 AM
F15511828: D14275.diff
Thu, Apr 17, 5:47 AM
F15468582: D14275.id34457.diff
Fri, Apr 4, 2:34 AM
F15424061: D14275.diff
Mar 22 2025, 8:02 PM
F15422125: D14275.id34457.diff
Mar 22 2025, 5:44 AM
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.