8000 Tde documentation updates for ga by Andriciuc · Pull Request #251 · percona/postgres · GitHub
[go: up one dir, main page]

Skip to content

Tde documentation updates for ga #251

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

Merged
merged 31 commits into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fdd464b
Added and reorg files
Andriciuc Apr 17, 2025
f3d8379
Split Home and created TDE Overview
Andriciuc Apr 17, 2025
e2d4be2
Further refined and split into topics
Andriciuc Apr 22, 2025
f5db064
Renamed files and folders for better SEO
Andriciuc Apr 23, 2025
4869f64
Merge remote-tracking branch 'origin/pg_tde_docs_updates_for_GA' into…
Andriciuc Apr 23, 2025
ed361e7
updated with Anders branch
Andriciuc Apr 24, 2025
b5c9e89
Small updates to yml and apt
Andriciuc Apr 28, 2025
d5a0629
updated index folder to reflect chapter name, overview
Andriciuc Apr 28, 2025
ef82b1f
updated overview doc to index again
Andriciuc Apr 28, 2025
cbd4017
updated links to reflect proper structure
Andriciuc Apr 28, 2025
778851b
Setup.md and structure changes
Andriciuc Apr 28, 2025
1e3c160
A handful of fixes
Andriciuc May 1, 2025
043b44e
removed PG Community mentions
Andriciuc May 1, 2025
0876d20
updated cli and kmip server code
Andriciuc May 5, 2025
106856d
small fixes
Andriciuc May 5, 2025
6dc7d79
Update functions.md
Andriciuc May 5, 2025
9b8d6c2
updated toc
Andriciuc May 5, 2025
9302f0f
small fixes to buttons added
Andriciuc May 5, 2025
7d4b514
smaller updates
Andriciuc May 6, 2025
6f1c3b8
smaller updates
Andriciuc May 6, 2025
12230fe
Update requirements.txt
Andriciuc May 6, 2025
31c0975
fixes part 1/2 from feedback review
Andriciuc May 6, 2025
dce23bd
updated features.md
Andriciuc May 7, 2025
1e61a45
removed compliance/regulations
Andriciuc May 7, 2025
f636e82
fix for PG-1587
Andriciuc May 7, 2025
45b470e
fixes for nastia 1/2 and for jz 2/2
Andriciuc May 7, 2025
104710e
all fixes accounted for
Andriciuc May 7, 2025
a39e568
Resolve merge conflicts
Andriciuc May 7, 2025
31bea87
fixes to titles
Andriciuc May 8, 2025
be6e6ef
fixed notes in features
Andriciuc May 8, 2025
7b76758
updated function parameters
Andriciuc May 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated toc
also, improved CLI flow, split into 3 subchapters
  • Loading branch information
Andriciuc committed May 5, 2025
commit 9b8d6c2c95f28dd1e685d10e6d32721ac213ae37
60 changes: 0 additions & 60 deletions contrib/pg_tde/documentation/docs/command-line-tools.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Additional CLI Commands and Tools

The `pg_tde` extension introduces new command-line utilities and extends some existing PostgreSQL tools to support encrypted WAL and tables. These include:

* [pg_tde_change_key_provider](../command-line-tools/pg-tde-change-key-provider.md): change encryption key provider for a database
* [pg_waldump](../command-line-tools/pg-waldump.md): inspect and decrypt WAL files
* [pg_checksums](../command-line-tools/pg-checksums.md): verify data checksums (non-encrypted files only)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# pg_tde_change_key_provider

A tool for modifying the configuration of a key provider, possibly also changing its type.

This tool edits the configuration files directly, ignoring permissions or running `postgres` processes.

Its only intended use is to fix servers that can't start up because of inaccessible key providers.

For example, you restore from an old backup and the address of the key provider changed in the meantime. You can use this tool to correct the configuration, allowing the server to start up.

!!! warning
Use this tool **only when the server is offline.** To modify the key provider configuration when the server is up and running, use the [`pg_tde_change_(global/database)_key_provider_<type>`](../functions.md#change-an-existing-provider) SQL functions.

## Example usage

To modify the key provider configuration, specify all parameters depending on the provider type in the same way as you do when using the [`pg_tde_change_(global/database)_key_provider_<type>`](../functions.md#change-an-existing-provider) SQL functions.

The general syntax is as follows:

```bash
pg_tde_change_key_provider [-D <datadir>] <dbOid> <provider_name> <new_provider_type> <provider_parameters...>
```

## Parameter description

* [optional] `<datadir>` is the data directory.`pg_tde` uses the `$PGDATA` environment variable if this is not specified
* `<provider_name>` is the name you assigned to the key provider
* `<new_provider_type>` can be a `file`, `vault` or `kmip`
* `<dbOid>`

Depending on the provider type, the additional parameters are:

```bash
pg_tde_change_key_provider [-D <datadir>] <dbOid> <provider_name> file <filename>
pg_tde_change_key_provider [-D <datadir>] <dbOid> <provider_name> vault <token> <url> <mount_path> [<ca_path>]
pg_tde_change_key_provider [-D <datadir>] <dbOid> <provider_name> kmip <host> <port> <cert_path> <key_path> [<ca_path>]
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# pg_checksums

[`pg_checksums` :octicons-link-external-16:](https://www.postgresql.org/docs/current/app-pgchecksums.html) is a PostgreSQL command-line utility used to enable, disable, or verify data checksums on a PostgreSQL data directory. However, it cannot calculate checksums for encrypted files.

Encrypted files are skipped, and this is reported in the output.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# pg_waldump

[`pg_waldump` :octicons-link-external-16:](https://www.postgresql.org/docs/current/pgwaldump.html) is a tool to display a human-readable rendering of the Write-Ahead Log (WAL) of a PostgreSQL database cluster.

To read encrypted WAL records, `pg_waldump` supports the following additional arguments:

* `keyring_path`: the directory where keyring configuration files for WAL are stored. These files include:

* `pg_tde.map`
* `pg_tde.dat`
* `pg_tde_keyrings`

!!! note
`pg_waldump` will not decrypt WAL unless the `keyring_path` is set.
4 changes: 2 additions & 2 deletions contrib/pg_tde/documentation/docs/faq.md
8000
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Thus, to protect your sensitive data, consider using TDE to encrypt it at the ta

## Is TDE enough to ensure data security?

No. TDE is an additional layer to ensure data security. It protects data at rest. Consider introducing also these measures:
**No.** Transparent Data Encryption (TDE) adds an extra layer of security for data at rest. You should also consider implementing the following additional security features:

* Access control and authentication
* Strong network security like TLS
Expand Down Expand Up @@ -122,7 +122,7 @@ No, it's not yet supported. In our implementation we reply on OpenSSL libraries

Yes, you can encrypt an existing table. Run the `ALTER TABLE` command as follows:

```
```sql
ALTER TABLE table_name SET ACCESS METHOD tde_heap;
```

Expand Down