mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-21 22:32:41 +01:00
adf209e655
Summary: Ref T5833. In some cases, we need to know if an Almanac device is the localhost or not, so we can either handle or forward the request. To accomplish this, write a device ID when running `bin/almanac register`. Using `--allow-key-reuse` and `--identify-as`, multiple devices are permitted to //authenticate// as one device but //identify// as different devices. In the Phacility cluster, this allows all the `repoXXX` machines to have one keypair (making key management much easier) but still work as separate devices. This is an advanced feature; normal installs with 1-3 hosts would just generate a key + device per host and identify/authenticate as the same device. Test Plan: Ran commands with lots of flags like `PHACILITY_INSTANCE=local sudo -E ./bin/almanac register --device daemon.phacility.net --private-key ~/dev/core/conf/keys/daemon.key --force --allow-key-reuse --identify-as local001.phacility.net`. Got a good result from `AlmanacKeys::getDeviceID()` afterward. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5833 Differential Revision: https://secure.phabricator.com/D11452
36 lines
714 B
Text
36 lines
714 B
Text
# NOTE: Thinking about adding files created by your operating system, IDE,
|
|
# or text editor here? Don't! Add them to your per-user .gitignore instead.
|
|
|
|
# Diviner
|
|
/docs/
|
|
/.divinercache/
|
|
|
|
# libphutil
|
|
/src/.phutil_module_cache
|
|
|
|
# Configuration
|
|
/conf/custom/*
|
|
/conf/local/local.json
|
|
/conf/local/ENVIRONMENT
|
|
/conf/local/VERSION
|
|
/conf/keys/device.pub
|
|
/conf/keys/device.key
|
|
/conf/keys/device.id
|
|
|
|
# Impact Font
|
|
/resources/font/impact.ttf
|
|
|
|
# User-accessible hook for adhoc debugging scripts
|
|
/support/debug.php
|
|
|
|
# User-accessible hook for adhoc startup code
|
|
/support/preamble.php
|
|
|
|
# Users can link binaries here
|
|
/support/bin/*
|
|
|
|
# User extensions
|
|
/src/extensions/*
|
|
|
|
# NPM local packages
|
|
/support/aphlict/server/node_modules/
|