-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of
Root
cert validation
OVERVIEW This set of changes applies to both the `check_cert` plugin and the `lscert` CLI tool. These changes borrow heavily from recent work for the initial implementation of the `Chain Order` validation check. As with that implementation, this set of changes is subject to change as work to implement further validity checks (and refactor existing ones) continues. CHANGES - update `check_cert` plugin - add new `Root` validation type - assert that no root certificates are in the chain - remove 'note' from the `Chain Order` validation check when a root certificate is found (now handled by this check) - extend tests to cover new validation type - update `lscert` - incorporate new validation check - incorporate the same "advice" output that the `check_cert` plugin now emits for `Root` validation problems - shared - move "advice" helper funcs to separate validation-helpers file as refactoring step towards further upcoming validation checks work - the initial idea was to provide further advice for sysadmins when a root certificate was detected (this may still occur later) - update README to add coverage for new `Root` validation check - emphasize that this check is not applied by default, but that this could change in the future - sysadmins are encouraged to explicitly opt-out of validation checks that they are not interested in - the checks still run, but the results are marked as ignored and not used to trigger plugin state changes REFERENCES - GH-1004 - GH-364 - GH-365
- Loading branch information
Showing
13 changed files
with
837 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
NOTE: A root cert was provided; including a root cert is *usually* not a problem, but be aware that some platforms object to this. | ||
⚠️ WARNING: A root cert was provided; while including a root cert is *usually* not a problem, be aware that some platforms object to this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.