Page MenuHomePhabricator

Allow API tokens to be added to arcrc
AbandonedPublic

Authored by cinek on Oct 14 2015, 12:40 PM.
Referenced Files
Unknown Object (File)
Tue, Nov 19, 6:02 PM
Unknown Object (File)
Fri, Nov 15, 11:42 PM
Unknown Object (File)
Tue, Nov 12, 1:42 PM
Unknown Object (File)
Fri, Nov 8, 12:39 PM
Unknown Object (File)
Fri, Nov 8, 12:39 PM
Unknown Object (File)
Fri, Nov 8, 12:39 PM
Unknown Object (File)
Fri, Nov 8, 4:57 AM
Unknown Object (File)
Oct 13 2024, 10:18 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.