mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 03:02:43 +01:00
ebebeb8f7c
Summary: Ref T7185. We currently have "locked", "masked", and "hidden" config. However, "masked" does not really do anything. It was intended to mask values in DarkConsole, but Config got built out instead and "hidden" is strictly better in modern usage and protects against compromised administrator accounts. "hidden" implies "locked", so it's now strictly more powerful than just locked. Remove "masked" and upgrade all "masked" config to "hidden". In particular, this hides some API keys and secret keys much more aggressively in Config, which is desirable. Test Plan: Browsed things like S3 API keys in config and could no longer see them. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7185 Differential Revision: https://secure.phabricator.com/D11763
37 lines
848 B
PHP
37 lines
848 B
PHP
<?php
|
|
|
|
final class PhabricatorMailgunConfigOptions
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
public function getName() {
|
|
return pht('Integration with Mailgun');
|
|
}
|
|
|
|
public function getDescription() {
|
|
return pht('Configure Mailgun integration.');
|
|
}
|
|
|
|
public function getFontIcon() {
|
|
return 'fa-send-o';
|
|
}
|
|
|
|
public function getGroup() {
|
|
return 'core';
|
|
}
|
|
|
|
public function getOptions() {
|
|
return array(
|
|
$this->newOption('mailgun.domain', 'string', null)
|
|
->setLocked(true)
|
|
->setDescription(
|
|
pht(
|
|
'Mailgun domain name. See https://mailgun.com/cp/domains'))
|
|
->addExample('mycompany.com', 'Use specific domain'),
|
|
$this->newOption('mailgun.api-key', 'string', null)
|
|
->setHidden(true)
|
|
->setDescription(pht('Mailgun API key.')),
|
|
);
|
|
|
|
}
|
|
|
|
}
|