This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
Permalink
Show file tree
Hide file tree
4 changes: 4 additions & 0 deletions
4
modules/certs/lib/puppet/provider/privkey/katello_ssl_tool.rb
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1021119 - make sure private keys are never world readable
This should prevent similar mistakes in future.
- Loading branch information
Showing
6 changed files
with
17 additions
and
4 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,8 @@ def source_path | |
| cert_details[:privkey] | ||
| end | ||
|
|
||
| def mode | ||
| 0400 | ||
| end | ||
|
|
||
| end | ||
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 |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ | |
|
|
||
| file { $client_key: | ||
| owner => "foreman", | ||
| mode => "400" | ||
| mode => "0400" | ||
| } | ||
|
|
||
| pubkey { $client_ca: | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ | |
|
|
||
| file { $proxy_key: | ||
| owner => "foreman-proxy", | ||
| mode => "400" | ||
| mode => "0400" | ||
| } | ||
|
|
||
| pubkey { $proxy_ca: | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ | |
|
|
||
| file { $client_key: | ||
| owner => "puppet", | ||
| mode => "400" | ||
| mode => "0400" | ||
| } | ||
|
|
||
| pubkey { $client_ca: | ||
|
|
||