1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 06:50:55 +01:00
phorge-phorge/src/infrastructure
epriestley 6a5369b173 Add an extensible "SiteSource" for configuration
Summary:
Fixes T2792. This adds a pluggable configuration layer between all the stuff on disk (local/file) and the runtime configurable stuff (database).

An install can subclass this source and:

  - For Phacility, query a remote service (like Almanac) to retrieve hostname-based configuration, allowing one install to serve multiple instances.
  - Maybe for Phacility, query a remote service (like Phlux) to retrieve sitevar-like configuration (e.g., put everything in readonly mode to deal with a maintenance issue?). Not sure if we'll do this or not. We might just nuke Phlux since Almanac is sort-of-a-superset of it for our purposes.
  - For third parties, query some other remote service if that makes config management easier. In particular, it would theoretically let you put locked config in Zookeeper or whatever else you want.

Test Plan: Added a fake source and saw it inject configuration.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T2792

Differential Revision: https://secure.phabricator.com/D10787
2014-11-05 15:30:40 -08:00
..
customfield Allow standard custom fields to be indexed in global fulltext search 2014-10-27 13:37:41 -07:00
daemon Fix daemon task queue to respect task priority 2014-10-31 09:27:04 -07:00
diff Minor formatting changes 2014-10-08 08:39:49 +11:00
edges Make Phortune account members editable and modernize the edge constant 2014-10-10 15:00:06 -07:00
env Add an extensible "SiteSource" for configuration 2014-11-05 15:30:40 -08:00
events Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
internationalization Minor formatting changes 2014-10-08 08:39:49 +11:00
javelin Allow Javelin initBehavior to source alternative library behaviors 2014-11-04 06:47:07 -08:00
lint/linter Rename Conduit classes 2014-07-25 10:54:15 +10:00
log Add an SSH access log 2013-12-05 17:00:48 -08:00
management Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
markup Fix project hashtag regexp to stop matching terminal periods 2014-10-29 08:13:38 -07:00
query Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
sms Minor formatting changes 2014-10-08 08:39:49 +11:00
ssh Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
storage Do a better job of handling spec errors during schema adjustment 2014-11-04 04:42:05 -08:00
testing Make Releeph a normal prototype application 2014-09-24 13:49:25 -07:00
time Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
util Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
PhabricatorEditor.php Use ManiphestTaskQuery in nearly all interfaces 2013-09-25 13:44:14 -07:00