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

Abdul/automate cert rotate #7543

Merged
merged 1 commit into from
Nov 15, 2022
Merged

Abdul/automate cert rotate #7543

merged 1 commit into from
Nov 15, 2022

Conversation

iamazzeez
Copy link
Contributor

Signed-off-by: Abdul-Az aazeez@progress.com
https://chefio.atlassian.net/browse/KINETICS-233

πŸ”© Description: What code changed, and why?

chef-automate cert-rotate --automate --root-ca "<>" --private-cert "<>" --public-cert "<>" --node ”<>”
This will rotate the certificate in the given Automate node.

⛓️ Related Resources

πŸ‘ Definition of Done

chef-automate cert-rotate --automate --root-ca "<>" --private-cert "<>" --public-cert "<>" --node ”<>”
Note: root-ca is ignored when --node flag is provided

πŸ‘Ÿ How to Build and Test the Change

Add this package in your manifest while deploying HA:
sahiba3108/automate-ha-deployment/0.1.0/20221028084038

Install this pkg in your bastion host:
hab pkg install aazeez/automate-cli/0.1.0/20221114130452 -bf

Run the below command in bastion:
chef-automate cert-rotate --public-cert client.pem --private-cert client-key.pem --root-ca root-ca.pem --automate --node ""
(You can also use --postgres flag instead of pg)
This will rotate the public and private cert in given pg node when root cert is same.

βœ… Checklist

All PRs must tick these:

With occasional exceptions, all PRs from Progress employees must tick these:

  • Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
  • Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
  • Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
  • Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
  • Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

  • Tests added/updated? (all new code needs new tests)
  • Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.

πŸ“· Screenshots, if applicable

Below is the link of testing demo video.

Screen.Recording.2022-11-14.at.6.37.23.PM.mov

Screenshot 2022-11-14 at 6 39 43 PM

Signed-off-by: Abdul-Az <aazeez@progress.com>
@netlify
Copy link

netlify bot commented Nov 14, 2022

πŸ‘· Deploy Preview for chef-automate processing.

Name Link
πŸ”¨ Latest commit 78a263e
πŸ” Latest deploy log https://app.netlify.com/sites/chef-automate/deploys/63723ed1ac4fc400085967b3

@sonarcloud
Copy link

sonarcloud bot commented Nov 14, 2022

Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Dmaddu Dmaddu merged commit c921c3c into main Nov 15, 2022
@Dmaddu Dmaddu deleted the abdul/automate_cert_rotate branch November 15, 2022 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants