Skip to content

Don't fail a backup if the Management Console password isn't set#416

Merged
jatoben merged 2 commits into
masterfrom
dont-require-mgmt-password
Jul 16, 2018
Merged

Don't fail a backup if the Management Console password isn't set#416
jatoben merged 2 commits into
masterfrom
dont-require-mgmt-password

Conversation

@jatoben

@jatoben jatoben commented Jul 13, 2018

Copy link
Copy Markdown
Contributor

When configuring a GitHub Enterprise cluster using automation on platforms such as AWS, the Management Console password is not required and setting it may be skipped. This causes the settings backup to fail, as ghe-config secrets.manage exits non-zero due to the non-existent key.

The change here causes ghe-backup-settings to print a warning instead; for example:

$ bin/ghe-backup
Starting backup of github.example.com with backup-utils v2.14.0 in snapshot 20180713T162211
Connect github.example.com:122 OK (v2.13.4)
Backing up GitHub settings ...
Warning: Management Console password not set
Backing up SSH authorized keys ...
Backing up SSH host keys ...
Backing up MySQL database ...
Backing up Redis database ...
Backing up audit log ...
Backing up hookshot logs ...
Backing up Git repositories ...
Backing up GitHub Pages ...
Backing up storage data ...
Backing up custom Git hooks ...
Completed backup of github.example.com:122 in snapshot 20180713T162211 at 16:22:38

@github/backup-utils Thoughts on this approach?

@jatoben jatoben requested a review from a team July 13, 2018 22:35

@lildude lildude left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and makes sense to me.

@jatoben jatoben merged commit 8fc24ad into master Jul 16, 2018
@jatoben jatoben deleted the dont-require-mgmt-password branch July 16, 2018 17:19
@lildude lildude added the bug label Aug 7, 2018
@lildude lildude mentioned this pull request Aug 7, 2018
dooleydevin added a commit that referenced this pull request Jul 21, 2023
…ncrypted-column-keys

Backport 331 for 3.7: Add encrypted column encryption keys to backup utils
@dooleydevin dooleydevin mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants