Skip to content

Improve SixWind config collection and secret filtering - #3874

Open
hcaldicott wants to merge 2 commits into
ytti:masterfrom
hcaldicott:sixwind-storage-output-types
Open

Improve SixWind config collection and secret filtering#3874
hcaldicott wants to merge 2 commits into
ytti:masterfrom
hcaldicott:sixwind-storage-output-types

Conversation

@hcaldicott

Copy link
Copy Markdown

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • [N/A] Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

Description

This change consists of a small bugfix for password and secret redaction, as well as a new feature to support multiple config backup formats.

I received a request from another ISP to implement support for backups in the fullpath format, and this change adds some variables that allow this to be configured, while retaining the hierarchical human-readable format by default.

I have also implemented some config value validation that I have not seen implemented in other models. When invalid values are entered, I raise Oxidized::InvalidConfig. Nothing mentions this being an issue in the contributing guidelines, but I would like feedback if there are concerns about this approach to variable validation.

@robertcheramy

Copy link
Copy Markdown
Collaborator

Does the behaviour of the model change? show config is replaced with show config nodefault.

It would be great to include a YAML simulation file if possible.

@hcaldicott

Copy link
Copy Markdown
Author

Does the behaviour of the model change? show config is replaced with show config nodefault.

It would be great to include a YAML simulation file if possible.

I will investigate the YAML simulation.

The nodefault command fixes a bug as well related to reapplying configuration, but I might make a quick change to make that configurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants