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

Postgres Cert Rotate Command #7522

Merged
merged 1 commit into from
Nov 3, 2022
Merged

Postgres Cert Rotate Command #7522

merged 1 commit into from
Nov 3, 2022

Conversation

SanjuPal01
Copy link
Collaborator

@SanjuPal01 SanjuPal01 commented Nov 2, 2022

Signed-off-by: “SanjuPal01” sanju.sanju@progress.com
"Sahiba3108" sgoyal@progress.com

🔩 Description: What code changed, and why?

Added the cert rotate command for HA service. Now user has to pass the certificate paths to cert-rotate cmd and it will rotate the certificates of all postgres nodes.

⛓️ Related Resources

https://chefio.atlassian.net/browse/KINETICS-235

👍 Definition of Done

👟 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 cli in your bastion host:
ssanju/automate-cli/0.1.0/20221102131051

Run the below command in bastion:
chef-automate cert-rotate --public-cert client.pem --private-cert client-key.pem --root-ca root-ca.pem --pg
(You can also use --postgres flag instead of pg)
This will rotate the public, private and root cert of all pg nodes.

✅ 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

Screenshot 2022-11-02 at 7 01 07 PM

Signed-off-by: “SanjuPal01” <sanju.sanju@progress.com>
@netlify
Copy link

netlify bot commented Nov 2, 2022

👷 Deploy Preview for chef-automate processing.

Name Link
🔨 Latest commit 37a58ef
🔍 Latest deploy log https://app.netlify.com/sites/chef-automate/deploys/6362710c5fe3ef0008d281c9

@sonarcloud
Copy link

sonarcloud bot commented Nov 2, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

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

4.4% 4.4% Coverage
0.0% 0.0% Duplication

@Dmaddu Dmaddu merged commit f058a5a into main Nov 3, 2022
@Dmaddu Dmaddu deleted the cert_rotate_pg branch November 3, 2022 10:24
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