Phabricator: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 6: Line 6:
Then set up an alias and directory in apache.  Then a mysql user + db.  Browse to the url to finish.  Easy peasy.
Then set up an alias and directory in apache.  Then a mysql user + db.  Browse to the url to finish.  Easy peasy.


[[Phabricator API]] can be used to extract a query of tasks, for inclusion on bitpost.com, for example.  See bitpost.com code for details.
[[Phabricator API]] can be used to extract a query of tasks.  You need to get a (permanent) auth certificate from '''arcanist''':
m@bitpost cd development/phabricator/arcanist
bin/arc set-config default https://thedigitalage.org/
emacs .arcconfig # and set phabricator.uri to the same
bin/arc install-certificate
That will tell you to browse [https://thedigitalage.org/conduit/login/ here].
You'll get an "API Token" once you log in, eg cli-5sdfksomkhgvasdlfkwfelk or whatever (NOT that one).
Paste API Token from that page: cli-5fxsvztksomkhgvczjtcdtnhz7ms
Writing ~/.arcrc...
SUCCESS!  API Token installed.
It then creates ~/.arcrc with the token, which is used by subsequent arc calls, like this:
 
Now you can use that in the API calls to authenticate, like this:
 
curl https://tdigitalage.org/api/maniphest.query -d api.token=cli-5fxsvztksomkhgvczjtcdtnhz7ms
 
Wow that's fucking easy once you have the initial bullshit done.  It certainly isn't secure though.
 
bitpost.com uses the API to get a list of tasks.  Generally, it's a really really bad setup though, as anyone can sniff out that auth token.  Use ssl, for sure: https://bitpost.comMaybe I should actually disable non-SSL bitpost.com... See bitpost.com code for details.

Revision as of 22:40, 25 March 2016

Installing Phabricator is as simple as any other LAMP installation. We grabbed the three primary git repos, here:

m@bitpost cd development/phabricator
git clone https://github.com/phacility/libphutil.git
git clone https://github.com/phacility/arcanist.git
git clone https://github.com/phacility/phabricator.git

Then set up an alias and directory in apache. Then a mysql user + db. Browse to the url to finish. Easy peasy.

Phabricator API can be used to extract a query of tasks. You need to get a (permanent) auth certificate from arcanist:

m@bitpost cd development/phabricator/arcanist
bin/arc set-config default https://thedigitalage.org/
emacs .arcconfig # and set phabricator.uri to the same
bin/arc install-certificate

That will tell you to browse here. You'll get an "API Token" once you log in, eg cli-5sdfksomkhgvasdlfkwfelk or whatever (NOT that one).

Paste API Token from that page: cli-5fxsvztksomkhgvczjtcdtnhz7ms
Writing ~/.arcrc...
SUCCESS!  API Token installed.

It then creates ~/.arcrc with the token, which is used by subsequent arc calls, like this:

Now you can use that in the API calls to authenticate, like this:

curl https://tdigitalage.org/api/maniphest.query -d api.token=cli-5fxsvztksomkhgvczjtcdtnhz7ms 

Wow that's fucking easy once you have the initial bullshit done. It certainly isn't secure though.

bitpost.com uses the API to get a list of tasks. Generally, it's a really really bad setup though, as anyone can sniff out that auth token. Use ssl, for sure: https://bitpost.com. Maybe I should actually disable non-SSL bitpost.com... See bitpost.com code for details.