1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/src/applications/almanac
epriestley b1351d0fdb Remove code which overrides "diffusion.ssh-username" when instanced
Summary:
Ref T13529. Now that instances can be renamed, an instance may have multiple valid SSH usernames and the preferred SSH username may not be the intenal instance name.

`PhacilitySiteSource` should already always set `diffusion.ssh-username` correctly, to the current preferred SSH username (which may be "new-name" after a rename from "old-name"), so we should never be able to reach this code without an accurate `diffusion.ssh-username` value available.

The code to resolve names into instances also already works for both "ssh old-name@..." and "ssh new-name@...".

So I believe this code has no beneficial effects and only causes harm: it may force us to return "old-name" when falling through would correctly return "new-name".

Test Plan:
  - Previously: renamed an instance, then SSH'd to it using both the old and new names. Both work.
  - Previously: verified that `diffusion.ssh-username` is set correctly after a rename.
  - Verified that Diffusion "Clone" UI now shows "new-name" after an instance rename.
  - The real question here is: does this break something I'm not thinking of? And the change probably has to go to production to answer that.

Maniphest Tasks: T13529

Differential Revision: https://secure.phabricator.com/D21259
2020-05-15 07:45:06 -07:00
..
application Clean up some old cluster-ish documentation 2016-04-12 19:14:08 -07:00
capability Simplify locking of Almanac cluster services 2016-02-25 03:38:39 -08:00
conduit Provide "almanac.binding.search" and "almanac.binding.edit" 2018-04-11 10:37:38 -07:00
controller Give "Config" a full-width, hierarchical layout 2020-02-04 06:59:51 -08:00
editor Allow "Change Subtype" to be selected from the comment action stack 2018-11-28 13:40:40 -08:00
engineextension When dirtying repository cluster routing caches after an Almanac edit, discover linked bindings from devices 2019-01-21 10:32:48 -08:00
management Remove dead "Service Lock" code from Almanac 2018-04-09 11:38:04 -07:00
phid Rough-in Almanac namespaces 2016-02-22 04:58:35 -08:00
property Modularize Almanac property transactions 2018-04-11 10:33:18 -07:00
query Convert complex query subclasses to use internal cursors 2019-03-19 13:02:16 -07:00
servicetype Allow repository cluster bindings to be marked as not "writable", making them read-only 2018-04-12 16:10:36 -07:00
storage Make the default behavior of getApplicationTransactionCommentObject() "return null" instead of "throw" 2019-02-07 14:56:38 -08:00
typeahead Store Almanac "service types" instead of "service classes" 2016-02-26 06:21:50 -08:00
util Remove code which overrides "diffusion.ssh-username" when instanced 2020-05-15 07:45:06 -07:00
view Separate button CSS classes 2017-06-05 20:14:34 +00:00
xaction Cleanup some clustering rough edges 2018-12-20 11:19:19 -08:00