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

cert rotate for each chef server node #7540

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

Sahiba3108
Copy link
Collaborator

@Sahiba3108 Sahiba3108 commented Nov 14, 2022

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

🔩 Description: What code changed, and why?

I want to rotate my certificates for the Chef Infra Server node from the Bastion host using Automate CLI.

⛓️ Related Resources

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

👍 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:
sahiba3108/automate-cli/0.1.0/20221114070730

Run the below command in bastion:
chef-automate cert-rotate --public-cert node1.pem --private-cert node1-key.pem --ip <ip> --cs
(You can also use --chefserver flag instead of cs)
This will rotate the public and private cert of a particular node.

✅ 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

MicrosoftTeams-image (8)

Signed-off-by: Sahiba3108 <sgoyal@progress.com>
@netlify
Copy link

netlify bot commented Nov 14, 2022

👷 Deploy Preview for chef-automate processing.

Name Link
🔨 Latest commit 9a18157
🔍 Latest deploy log https://app.netlify.com/sites/chef-automate/deploys/6371edf690d384000881fc90

@sonarcloud
Copy link

sonarcloud bot commented Nov 14, 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 0 Code Smells

7.1% 7.1% Coverage
0.0% 0.0% Duplication

@Dmaddu Dmaddu merged commit 0f73385 into main Nov 14, 2022
@Dmaddu Dmaddu deleted the kinetics-229/rotateCert-forEach-ChefserverNode branch November 14, 2022 10:09
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.

5 participants