Skip to main content

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

salt-verifier-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file salt-verifier-0.1.1.tar.gz.

File metadata

File hashes

Hashes for salt-verifier-0.1.1.tar.gz
Algorithm Hash digest
SHA256 48c43940626502b048fea946ca5a74825546c47459b010ae3275b5ca050d79f5
MD5 f008d7f51567da1a6a4357bad7171129
BLAKE2b-256 69c918623db4494ff7c56c5410fec8a1a0fc3a2d83e10138fb4b13f60096c8d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page