마스터 검증 지문에 클라이언트 설정

보안 수준이 높은 네트워크 구성에서는 Salt 클라이언트가 특정 마스터에 연결하고 있는지 확인해야 하는 경우가 있습니다. 클라이언트에서 마스터로 유효성 검사를 설정하려면 먼저 Salt 미니언 구성 파일에 마스터의 지문을 입력합니다.

  • /etc/salt/minion.d/custom.conf in cases of using classic Salt minion in your client, or

  • /etc/venv-salt-minion/minion.d/custom.conf in case of using Salt Bundle in your client

그리고 다음 절차를 따릅니다.

To access a shell inside the Server container run mgrctl term on the container host.

절차: 마스터의 지문을 클라이언트에 추가
  1. On the master, at the command prompt, as root, use this command to find the master.pub fingerprint:

    salt-key -F master

    On your client, open the /etc/salt/minion.d/custom.conf or /etc/venv-salt-minion/minion.d/custom.conf configuration file. Add this line to enter the master’s fingerprint replacing the example fingerprint:

    master_finger: 'ba:30:65:2a:d6:9e:20:4f:d8:b2:f3:a7:d4:65:11:13'
  2. 서비스를 다시 시작합니다. salt-minion의 경우 다음을 실행합니다.

    systemctl restart salt-minion
  3. 또는 venv-salt-minion의 경우 다음을 실행합니다.

    systemctl restart venv-salt-minion

Salt 번들에 대한 자세한 내용은 Salt Bundle에서 확인할 수 있습니다.

클라이언트에서 보안 구성에 대한 내용은 https://docs.saltproject.io/en/latest/ref/configuration/minion.html에서 확인할 수 있습니다.