Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return principals whenever the ssh_ca role is executed #16

Open
ricrodriguezg opened this issue Nov 19, 2021 · 0 comments
Open

Return principals whenever the ssh_ca role is executed #16

ricrodriguezg opened this issue Nov 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ricrodriguezg
Copy link
Contributor

BUSINESS PROBLEM
While using the ssh_ca role form the collection when you execute it for the first time passing the credentials to get the public key CA and the principals it returns public key CA in a file and the principals are sent to the standard output in JSON format (ssh_ca_principals key), however when it is executed again and the key is already present in the system the role would not try to retrieve the principals again from TPP resulting in the ssh_ca_principals key in the JSON being null, e.g.

    "msg": {                                                                                                                                                                                  
        "changed": false,                                                                                                                                                                     
        "failed": false,                                                                                                                                                                      
        "ssh_ca_principals": null,                                                                                                                                                            
        "ssh_ca_public_key": null,                                                             
        "ssh_ca_public_key_filename": "/ssh_ca_dir/cit-name.pub"                                                                                     
    }                                                                                                                                                                                         
}

PROPOSED SOLUTION
Provide the principals either in a file stored in the ansible machine or connect to TPP whenever the ssh_ca role is executed and get the list of principals each time.

CURRENT ALTERNATIVES
Only executing the playbook the first time and if there is any change on the principals updating the principals manually.

VENAFI EXPERIENCE

I've been using Venafi's products for almost a year, so far a great experience, I use them everyday 👍

@ricrodriguezg ricrodriguezg added the enhancement New feature or request label Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant