-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add YAML to Markdown conversion script and generated Markdown files #497
Merged
Conversation
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
eaudetcobello
changed the title
initial version of cis hardening reference
cis hardening reference
Jun 14, 2024
eaudetcobello
force-pushed
the
cis-hardening-docs-2
branch
from
June 14, 2024 20:40
555fbe7
to
bffb2d2
Compare
eaudetcobello
force-pushed
the
cis-hardening-docs-2
branch
from
June 15, 2024 01:33
dfe8617
to
058e22f
Compare
eaudetcobello
force-pushed
the
cis-hardening-docs-2
branch
2 times, most recently
from
June 15, 2024 02:15
353ccfc
to
a259434
Compare
and drive-by simplifications
eaudetcobello
force-pushed
the
cis-hardening-docs-2
branch
from
June 15, 2024 02:15
a259434
to
010e5b4
Compare
DATA_DIR is hard-coded in master.cis-yaml it is not a variable this script has to override
DATA_DIR is a hardcoded variable that should not be modified by the script
evilnick
suggested changes
Jun 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice so far! Questions and comments:
- The output files should not go directly to docs, that isn't how we do it. Create a 'cis' directory in '_parts' and put them in there
- As far as I understand, this is a list of the various tests and remediations which apply which we do need, but we also need/want a list of the ones which Fail without user steps. Are we going to autogenerate that too?
- i made a few suggestions on the script. I would rather try and generate something that is expected to pass linting because then if linting fails we know something has gone wrong
- i will also a few notes on some of the generated output on things we can improve.
evilnick
reviewed
Jun 17, 2024
evilnick
reviewed
Jun 17, 2024
evilnick
reviewed
Jun 17, 2024
we support configuring etcd through /etc/default/etcd, therefore the only configuration relevant to us is through environment variables on the /usr/bin/etcd process. This commit goes hand in hand with : canonical/kube-bench@a4f580b
eaudetcobello
force-pushed
the
cis-hardening-docs-2
branch
from
June 27, 2024 12:16
b949a0a
to
6479818
Compare
Aren't the outputs still in the wrong order? I thought it should go:
Other than that, as none of this is actually visible I suggest we merge so:
|
eaudetcobello
force-pushed
the
cis-hardening-docs-2
branch
from
June 27, 2024 12:57
31dd6e3
to
f743969
Compare
evilnick
approved these changes
Jun 27, 2024
eaudetcobello
force-pushed
the
cis-hardening-docs-2
branch
from
June 27, 2024 19:48
ebbaf1b
to
11353c2
Compare
eaudetcobello
changed the title
cis hardening reference
cis hardening reference script and markdown
Jun 27, 2024
eaudetcobello
changed the title
cis hardening reference script and markdown
Add YAML to Markdown conversion script and generated Markdown files
Jun 27, 2024
louiseschmidtgen
pushed a commit
that referenced
this pull request
Jul 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This contains every control in CIS adapted to Canonical K8s in markdown form. There is also the python script and jinja template.
Note this doesn't have the metadata for webpages yet.