Skip to content

(PDB-4764) Agent SSL certificates are used for communication with PostgreSQL#322

Merged
austb merged 1 commit intopuppetlabs:masterfrom
Filipovici-Andrei:PDB-4764
Mar 23, 2021
Merged

(PDB-4764) Agent SSL certificates are used for communication with PostgreSQL#322
austb merged 1 commit intopuppetlabs:masterfrom
Filipovici-Andrei:PDB-4764

Conversation

@Filipovici-Andrei
Copy link
Copy Markdown
Contributor

Updated the manifests for SSL configuration of PostgreSQL database configuration file.

@Filipovici-Andrei Filipovici-Andrei requested a review from a team as a code owner March 3, 2021 15:47
@puppet-community-rangefinder
Copy link
Copy Markdown

puppetdb_conn_validator is a type

Breaking changes to this file MAY impact these 1 modules (near match):

puppetdb::database::postgresql is a class

that may have no external impact to Forge modules.

puppetdb is a class

Breaking changes to this file WILL impact these 5 modules (exact match):
Breaking changes to this file MAY impact these 3 modules (near match):

puppetdb::params is a class

that may have no external impact to Forge modules.

This module is declared in 33 of 576 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@Filipovici-Andrei Filipovici-Andrei force-pushed the PDB-4764 branch 5 times, most recently from 4758df1 to cb44ace Compare March 4, 2021 16:06
Comment thread manifests/server/database.pp Outdated
Comment thread manifests/params.pp
@Filipovici-Andrei Filipovici-Andrei force-pushed the PDB-4764 branch 2 times, most recently from fd2cccb to 310fe29 Compare March 8, 2021 16:22
Copy link
Copy Markdown
Contributor

@austb austb left a comment

Choose a reason for hiding this comment

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

To document the settings I had to add for client authentication I wanted to add these here

pg_hba.conf

# Rule Name: Allow certificate mapped connections to pe-puppetdb as pe-puppetdb (ipv4)
# Description: none
# Order: 0
hostssl puppetdb     puppetdb     0.0.0.0/0       cert    map=puppetdb-puppetdb-map clientcert=1

# Rule Name: Allow certificate mapped connections to pe-puppetdb as pe-puppetdb (ipv6)
# Description: none
# Order: 1
hostssl puppetdb     puppetdb     ::/0    cert    map=puppetdb-puppetdb-map clientcert=1

This is a file I forgot about, but pg_ident.conf defines the certificate name to database username mappings

# This file is managed by Puppet. DO NOT EDIT.
puppetdb-puppetdb-map duller-artery.delivery.puppetlabs.net puppetdb

A lot of my configuration to get it working was done manually, so in case I missed anything I've extended the lifetime of duller-artery.delivery.puppetlabs.net in case you want to dig around in the settings.

Comment thread manifests/server/database.pp Outdated
Comment thread manifests/server/database.pp
Comment thread manifests/database/postgresql.pp Outdated
@Filipovici-Andrei Filipovici-Andrei force-pushed the PDB-4764 branch 11 times, most recently from 90ec746 to 4e2210d Compare March 12, 2021 17:00
Copy link
Copy Markdown
Contributor

@austb austb left a comment

Choose a reason for hiding this comment

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

This looks good, I think it could use a couple of basic tests for the important settings, like pg_ident/pg_hba rules, the subname config setting, and the pk8 and then it should be ready to go.

@Filipovici-Andrei Filipovici-Andrei force-pushed the PDB-4764 branch 7 times, most recently from 98c8214 to b46e611 Compare March 19, 2021 15:03
@austb austb merged commit c66c097 into puppetlabs:master Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants