mirror of
https://github.com/apache/nifi.git
synced 2025-03-04 00:19:44 +00:00
NIFI-13894 Removed protected and additional keys properties
This closes #9415 - Removed nifi.sensitive.props.key.protected placeholder - Removed nifi.sensitive.props.additional.keys placeholder Signed-off-by: Joseph Witt <joewitt@apache.org>
This commit is contained in:
parent
927baa858f
commit
f9fb4223a7
@ -139,19 +139,15 @@ public class MiNiFiPropertiesGenerator {
|
||||
Triple.of(NiFiProperties.FLOW_CONFIGURATION_FILE, "./conf/flow.json.gz", EMPTY)
|
||||
);
|
||||
|
||||
static final String PROTECTED_POSTFIX = ".protected";
|
||||
static final Map<String, String> MINIFI_TO_NIFI_PROPERTY_MAPPING = Map.ofEntries(
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_FLOW_CONFIG.getKey(), NiFiProperties.FLOW_CONFIGURATION_FILE),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_KEYSTORE.getKey(), NiFiProperties.SECURITY_KEYSTORE),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_KEYSTORE_TYPE.getKey(), NiFiProperties.SECURITY_KEYSTORE_TYPE),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_KEYSTORE_PASSWD.getKey(), NiFiProperties.SECURITY_KEYSTORE_PASSWD),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_KEYSTORE_PASSWD.getKey() + PROTECTED_POSTFIX, NiFiProperties.SECURITY_KEYSTORE_PASSWD + PROTECTED_POSTFIX),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_KEY_PASSWD.getKey(), NiFiProperties.SECURITY_KEY_PASSWD),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_KEY_PASSWD.getKey() + PROTECTED_POSTFIX, NiFiProperties.SECURITY_KEY_PASSWD + PROTECTED_POSTFIX),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_TRUSTSTORE.getKey(), NiFiProperties.SECURITY_TRUSTSTORE),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_TRUSTSTORE_TYPE.getKey(), NiFiProperties.SECURITY_TRUSTSTORE_TYPE),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_TRUSTSTORE_PASSWD.getKey(), NiFiProperties.SECURITY_TRUSTSTORE_PASSWD),
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_TRUSTSTORE_PASSWD.getKey() + PROTECTED_POSTFIX, NiFiProperties.SECURITY_TRUSTSTORE_PASSWD + PROTECTED_POSTFIX)
|
||||
entry(MiNiFiProperties.NIFI_MINIFI_SECURITY_TRUSTSTORE_PASSWD.getKey(), NiFiProperties.SECURITY_TRUSTSTORE_PASSWD)
|
||||
);
|
||||
|
||||
static final String DEFAULT_SENSITIVE_PROPERTIES_ENCODING_ALGORITHM = "NIFI_PBKDF2_AES_GCM_256";
|
||||
|
@ -123,7 +123,6 @@ public enum MiNiFiProperties {
|
||||
public static final String MINIFI_LOG_DIRECTORY = "nifi.minifi.log.directory";
|
||||
public static final String MINIFI_APP_LOG_FILE = "nifi.minifi.app.log.file";
|
||||
public static final String MINIFI_BOOTSTRAP_LOG_FILE = "nifi.minifi.bootstrap.log.file";
|
||||
public static final String ADDITIONAL_SENSITIVE_PROPERTIES_KEY = "nifi.minifi.sensitive.props.additional.keys";
|
||||
|
||||
private final String key;
|
||||
private final String defaultValue;
|
||||
|
@ -1,19 +0,0 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
nifi.flow.configuration.file=./conf/flow.json.gz
|
||||
|
||||
nifi.security.keystorePasswd=Ycac+pAe3AdHbCAC||ImnArC6KZJ+WXDMwJw2cjpOpNJFk1s5XyfbkrB8=
|
||||
nifi.security.keystorePasswd.protected=aes/gcm/128
|
@ -78,9 +78,7 @@
|
||||
<nifi.nar.unpack.uber.jar>false</nifi.nar.unpack.uber.jar>
|
||||
<nifi.upload.working.directory>./work/uploads</nifi.upload.working.directory>
|
||||
|
||||
<nifi.sensitive.props.key.protected />
|
||||
<nifi.sensitive.props.algorithm>NIFI_PBKDF2_AES_GCM_256</nifi.sensitive.props.algorithm>
|
||||
<nifi.sensitive.props.additional.keys />
|
||||
|
||||
<nifi.remote.input.socket.port>9990</nifi.remote.input.socket.port>
|
||||
<nifi.remote.input.secure>true</nifi.remote.input.secure>
|
||||
|
@ -184,9 +184,7 @@ nifi.web.https.ciphersuites.exclude=
|
||||
|
||||
# security properties #
|
||||
nifi.sensitive.props.key=
|
||||
nifi.sensitive.props.key.protected=${nifi.sensitive.props.key.protected}
|
||||
nifi.sensitive.props.algorithm=${nifi.sensitive.props.algorithm}
|
||||
nifi.sensitive.props.additional.keys=${nifi.sensitive.props.additional.keys}
|
||||
|
||||
nifi.security.autoreload.enabled=${nifi.security.autoreload.enabled}
|
||||
nifi.security.autoreload.interval=${nifi.security.autoreload.interval}
|
||||
|
@ -39,9 +39,6 @@ nifi.registry.security.authorizer=${nifi.registry.security.authorizer}
|
||||
nifi.registry.security.identity.providers.configuration.file=${nifi.registry.security.identity.providers.configuration.file}
|
||||
nifi.registry.security.identity.provider=${nifi.registry.security.identity.provider}
|
||||
|
||||
# sensitive property protection properties #
|
||||
# nifi.registry.sensitive.props.additional.keys=
|
||||
|
||||
# providers properties #
|
||||
nifi.registry.providers.configuration.file=${nifi.registry.providers.configuration.file}
|
||||
|
||||
|
@ -153,9 +153,7 @@ nifi.web.proxy.host=
|
||||
|
||||
# security properties #
|
||||
nifi.sensitive.props.key=nifi-system-tests
|
||||
nifi.sensitive.props.key.protected=
|
||||
nifi.sensitive.props.algorithm=NIFI_PBKDF2_AES_GCM_256
|
||||
nifi.sensitive.props.additional.keys=
|
||||
|
||||
nifi.security.keystore=certs/keystore.p12
|
||||
nifi.security.keystoreType=PKCS12
|
||||
|
@ -153,9 +153,7 @@ nifi.web.proxy.host=
|
||||
|
||||
# security properties #
|
||||
nifi.sensitive.props.key=nifi-system-tests
|
||||
nifi.sensitive.props.key.protected=
|
||||
nifi.sensitive.props.algorithm=NIFI_PBKDF2_AES_GCM_256
|
||||
nifi.sensitive.props.additional.keys=
|
||||
|
||||
nifi.security.keystore=certs/keystore.p12
|
||||
nifi.security.keystoreType=PKCS12
|
||||
|
@ -154,9 +154,7 @@ nifi.web.proxy.host=
|
||||
|
||||
# security properties #
|
||||
nifi.sensitive.props.key=nifi-system-tests
|
||||
nifi.sensitive.props.key.protected=
|
||||
nifi.sensitive.props.algorithm=NIFI_PBKDF2_AES_GCM_256
|
||||
nifi.sensitive.props.additional.keys=
|
||||
|
||||
nifi.security.keystore=certs/keystore.p12
|
||||
nifi.security.keystoreType=PKCS12
|
||||
|
@ -158,9 +158,7 @@ nifi.web.proxy.host=
|
||||
|
||||
# security properties #
|
||||
nifi.sensitive.props.key=nifi-system-tests
|
||||
nifi.sensitive.props.key.protected=
|
||||
nifi.sensitive.props.algorithm=NIFI_PBKDF2_AES_GCM_256
|
||||
nifi.sensitive.props.additional.keys=
|
||||
|
||||
nifi.security.keystore=certs/keystore.p12
|
||||
nifi.security.keystoreType=PKCS12
|
||||
|
Loading…
x
Reference in New Issue
Block a user