From d02202cde2268c83de02a00f4649b472379c5f82 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 26 Oct 2013 14:32:47 -0700 Subject: [PATCH] Enable "SSH Keys" auth panel unconditionally Summary: We've had support for this for a long time, but it was conditional on config. Since it more-or-less actually does something now, just enable it unconditionally. Test Plan: Settings -> SSH Public Keys Reviewers: btrahan Reviewed By: btrahan CC: hach-que, aran Maniphest Tasks: T2230 Differential Revision: https://secure.phabricator.com/D7426 --- conf/default.conf.php | 7 ------- .../check/PhabricatorSetupCheckExtraConfig.php | 2 ++ .../PhabricatorAuthenticationConfigOptions.php | 15 --------------- .../panel/PhabricatorSettingsPanelSSHKeys.php | 2 +- 4 files changed, 3 insertions(+), 23 deletions(-) diff --git a/conf/default.conf.php b/conf/default.conf.php index 2a27da97d3..8291677b02 100644 --- a/conf/default.conf.php +++ b/conf/default.conf.php @@ -559,13 +559,6 @@ return array( // to have. 'auth.sessions.conduit' => 5, - // Set this true to enable the Settings -> SSH Public Keys panel, which will - // allow users to associated SSH public keys with their accounts. This is only - // really useful if you're setting up services over SSH and want to use - // Phabricator for authentication; in most situations you can leave this - // disabled. - 'auth.sshkeys.enabled' => false, - // If true, email addresses must be verified (by clicking a link in an // email) before a user can login. By default, verification is optional // unless 'auth.email-domains' is nonempty (see below). diff --git a/src/applications/config/check/PhabricatorSetupCheckExtraConfig.php b/src/applications/config/check/PhabricatorSetupCheckExtraConfig.php index 8190b187b2..ed76ab1997 100644 --- a/src/applications/config/check/PhabricatorSetupCheckExtraConfig.php +++ b/src/applications/config/check/PhabricatorSetupCheckExtraConfig.php @@ -162,6 +162,8 @@ final class PhabricatorSetupCheckExtraConfig extends PhabricatorSetupCheck { 'been migrated.'), 'differential.custom-remarkup-rules' => $markup_reason, 'differential.custom-remarkup-block-rules' => $markup_reason, + 'auth.sshkeys.enabled' => pht( + 'SSH keys are now actually useful, so they are always enabled.'), ); return $ancient_config; diff --git a/src/applications/config/option/PhabricatorAuthenticationConfigOptions.php b/src/applications/config/option/PhabricatorAuthenticationConfigOptions.php index 9be99adff2..dffe91e7be 100644 --- a/src/applications/config/option/PhabricatorAuthenticationConfigOptions.php +++ b/src/applications/config/option/PhabricatorAuthenticationConfigOptions.php @@ -29,21 +29,6 @@ final class PhabricatorAuthenticationConfigOptions pht( "Maximum number of simultaneous Conduit sessions each user is ". "permitted to have.")), - $this->newOption('auth.sshkeys.enabled', 'bool', false) - ->setBoolOptions( - array( - pht("Enable SSH key storage"), - pht("Disable SSH key storage"))) - ->setSummary( - pht("Allow users to associate SSH keys with their accounts.")) - ->setDescription( - pht( - "Set this true to enable the Settings -> SSH Public Keys panel, ". - "which will allow users to associated SSH public keys with their ". - "accounts. This is only really useful if you're setting up ". - "services over SSH and want to use Phabricator for ". - "authentication; in most situations you can leave this ". - "disabled.")), $this->newOption('auth.require-email-verification', 'bool', false) ->setBoolOptions( array( diff --git a/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php b/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php index d9fd4742d0..908671669e 100644 --- a/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php +++ b/src/applications/settings/panel/PhabricatorSettingsPanelSSHKeys.php @@ -16,7 +16,7 @@ final class PhabricatorSettingsPanelSSHKeys } public function isEnabled() { - return PhabricatorEnv::getEnvConfig('auth.sshkeys.enabled'); + return true; } public function processRequest(AphrontRequest $request) {