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

keystore needs to be checked on each puppet run #15

Merged
merged 1 commit into from
Dec 2, 2019
Merged

keystore needs to be checked on each puppet run #15

merged 1 commit into from
Dec 2, 2019

Conversation

pseiler
Copy link

@pseiler pseiler commented Oct 25, 2019

Pull Request (PR) description

keystore needs to be checked on each puppet run
otherwise it looses the certs after a java update

This Pull Request (PR) fixes the following issues

@ghoneycutt
Copy link
Member

Hi @pseiler looks like you need to rebase for this to merge. Also the tests should be updated for this resource. If no tests exist, could you please add one.

@pseiler
Copy link
Author

pseiler commented Oct 25, 2019

@ghoneycutt I haven't wrote tests yet (i only fixed the one for my other pr). But I'll do my best.
I also rebase it. I'll keep you updated. I also seen a styleguide violation in my pr which I of course fix

@pseiler
Copy link
Author

pseiler commented Oct 26, 2019

@ghoneycutt Please have a look now. Excuse my force pushes ;)

@pseiler
Copy link
Author

pseiler commented Nov 1, 2019

@ghoneycutt ping

@pseiler
Copy link
Author

pseiler commented Nov 16, 2019

@ghoneycutt friendly reminder. And could you add a New release after merging the pull request?

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Other than the alignment issues this makes sense. There's already an unless which should guarantee idempotency.

However, this whole class is a very bad pattern and needs a fix. Using predictable file names in /tmp is a recipe for security issues and with CAs that's definitely a real danger. Not saying you need to do that in this PR though.

manifests/ca.pp Outdated
@@ -40,8 +40,8 @@
define trusted_ca::ca (
Optional[String] $source = undef,
Optional[Pattern['^[A-Za-z0-9+/\n=-]+$']] $content = undef,
Stdlib::Absolutepath $install_path = $trusted_ca::install_path,
String $certfile_suffix = $trusted_ca::certfile_suffix,
Stdlib::Absolutepath $install_path = $trusted_ca::install_path,
Copy link
Member

Choose a reason for hiding this comment

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

Please don't align class parameters. It's unrelated to the actual fix and just introduces noise.

@pseiler
Copy link
Author

pseiler commented Nov 16, 2019

I will revert it and ping you. Sorry I thought the alignment is some sort of guidelines. After that I try to improve security and the behavior of the class in another pr. We use it in our company so I have a high interest in better code quality

@pseiler
Copy link
Author

pseiler commented Nov 16, 2019

@ekohl I reverted the alignment changes. Thank you for the infos. I try to rework the class in another pr.
/e: Needs another rebase. Will fix this tomorrow. Sorry for the ping.

otherwise it looses the certs after a java update
@pseiler pseiler requested a review from ekohl November 17, 2019 09:07
@pseiler
Copy link
Author

pseiler commented Nov 17, 2019

hopefully this is my final force push. Could be merged now

@pseiler
Copy link
Author

pseiler commented Dec 2, 2019

@ekohl ping

@ekohl
Copy link
Member

ekohl commented Dec 2, 2019

Sorry, missed this one in the flood of Github notifications.

@ekohl ekohl merged commit b80a97f into voxpupuli:master Dec 2, 2019
@pseiler
Copy link
Author

pseiler commented Dec 2, 2019

No problem. Thank you very much

@pseiler pseiler deleted the java_new branch December 2, 2019 11:55
@ekohl ekohl added bug Something isn't working and removed needs-rebase needs-tests labels May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants