salt-verifier - The salt verifier
Project description
A library that provides both a client and server that can be used to verify a salt minion’s public key before it is accepted by the master. The server is meant to run on the minion and listen on port 4533. In order to verify the public key of the minion, the client generates random challenge messages that the minion must sign.
Installation
$ pip install salt-verifier
Usage
Run the server:
$ salt-verifier-server
It will load the private key of the current minion from /etc/salt/pki/minion/minion.pem.
From the master, verify the minion by using the client library like so:
from saltverifier.client import is_valid_server_public_key if is_valid_server_public_key('tcp://minion-ip:4533', 'SOME_PUBLIC_KEY_STR'): do-something-when-the-public-is-valid else: do-something-when-the-public-is-invalid
Install an Upstart Script
For convenience this package provides a command
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file salt-verifier-0.1.2.tar.gz
.
File metadata
- Download URL: salt-verifier-0.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee58c0fdad4aef73f306d3463a6ae50d82011e9e6f622c774f68ccb92b23d7d5 |
|
MD5 | 15a76e675c3c59df6b8e6ea9de6034fc |
|
BLAKE2b-256 | b760cadb7589c17fd5ff18a04fccb7fafe3c82595058690e1381cc7a247e9ae8 |