You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Zhiguo Wu (Jira)" <ji...@apache.org> on 2022/10/02 06:55:00 UTC

[jira] [Updated] (AMBARI-24663) 'ambari-server setup' does not use AMBARI_SECURITY_MASTER_KEY env var

     [ https://issues.apache.org/jira/browse/AMBARI-24663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhiguo Wu updated AMBARI-24663:
-------------------------------
    Fix Version/s: 2.8.0

> 'ambari-server setup' does not use AMBARI_SECURITY_MASTER_KEY env var
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-24663
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24663
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.1
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 2.8.0, 2.7.3
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> *STR*
> Installed ambari-server and configured password encryption, but chose not to persist master key
> {code}
> [root@h002 ~]# ambari-server setup-security
> Using python  /usr/bin/python
> Security setup options...
> ===========================================================================
> Choose one of the following options:
> [1] Enable HTTPS for Ambari server.
> [2] Encrypt passwords stored in ambari.properties file.
> [3] Setup Ambari kerberos JAAS configuration.
> [4] Setup truststore.
> [5] Import certificate to truststore.
> ===========================================================================
> Enter choice, (1-5): 2
> Password encryption is enabled.
> Do you want to reset Master Key? [y/n] (n): y
> Master Key not persisted.
> Enter current Master Key:
> Enter new Master Key:
> Re-enter master key:
> Do you want to persist master key. If you choose not to persist, you need to provide the Master Key while starting the ambari server as an env variable named AMBARI_SECURITY_MASTER_KEY or the start will prompt for the master key. Persist [y/n] (y)? n
> Adjusting ambari-server permissions and ownership...
> Ambari Server 'setup-security' completed successfully.
> {code}
> Then export environment variable
> export AMBARI_SECURITY_MASTER_KEY=hadoop
> ambari-server setup promts to enter current master key



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org