File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/sdb/__pycache__/confidant.cpython-310.pyc
Back
o ;j� � @ sh d Z ddlZddlZzddlZddlZdZW n ey! dZY nw e�e �Z dZdd� Zd dd �Z dS )a7 An SDB module for getting credentials from confidant. Configuring the Confidant module ================================ The module can be configured via sdb in the minion config: .. code-block:: yaml confidant: driver: confidant # The URL of the confidant web service url: 'https://confidant-production.example.com' # The context to use for KMS authentication auth_context: from: example-production-iad to: confidant-production-iad user_type: service # The KMS master key to use for authentication auth_key: "alias/authnz" # Cache file for KMS auth token token_cache_file: /run/confidant/confidant_token # The duration of the validity of a token, in minutes token_duration: 60 # key, keyid and region can be defined in the profile, but it's generally # best to use IAM roles or environment variables for AWS auth. keyid: 98nh9h9h908h09kjjk key: jhf908gyeghehe0he0g8h9u0j0n0n09hj09h0 region: us-east-1 :depends: confidant-common, confidant-client Module Documentation ==================== � NTF� confidantc C s t rtS dS )z9 Only return if requests and boto are installed. F)�HAS_LIBS�__virtualname__� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/sdb/confidant.py�__virtual__9 s r c C sP dddd�}t �|�}|�dd�rd|d<