Skip to content

docs(ruby): link the KMS trigger SQL from the wrapper repo and document updating it - #43

Merged
aaron-congo merged 1 commit into
mainfrom
docs/kms-trigger-sql-source
Oct 21, 2026
Merged

aaron-congo merged 1 commit into
mainfrom
docs/kms-trigger-sql-source

Conversation

@aaron-congo

Copy link
Copy Markdown
Contributor

Description

Replaces the inline copies of the KMS Encryption Plugin's trigger SQL with links to the files the Ruby wrapper repo maintains, so the SQL has one source, and documents how to keep an installed trigger up to date.

  • The PostgreSQL and MySQL trigger SQL blocks are replaced with links to trigger_pg.sql and trigger_mysql.sql in the wrapper repo (lib/aws_advanced_ruby_driver_wrapper/plugins/kms_encryption/sql/), plus short setup notes:
    • replacing the encrypt schema name;
    • the pgcrypto schema;
    • the MySQL version and log_bin_trust_function_creators requirements;
    • the DELIMITER note.
  • The per-column CREATE TRIGGER examples stay on the page.
  • Removed the note about widening the trigger's HMAC key cache to the session, since the trigger no longer caches the key.
  • New section, Updating the trigger SQL:
    • when to re-run the trigger SQL;
    • that re-running doesn't change data and keeps the per-column triggers;
    • the brief write-failure window on MySQL;
    • queries to check the installed version from its database comment;
    • a table of the versions so far (PostgreSQL v2, MySQL v1).
  • Updated the YAML comment above the section to say the SQL now lives in the wrapper repo.
  • Regenerated site/docs-ruby/using-plugins/kms-encryption.md with generate.py. No other pages changed.

Merge order: the links point to files added in wrapper PR 218 and won't resolve until that PR is merged. Merge it first. After this PR is merged, merge main into ruby/1.1.0 so the 1.1.0 branch doesn't bring back the old inline SQL.

Which docs are affected?

Ruby: Using the KMS Encryption Plugin (using-plugins/kms-encryption), the "Enforce encryption in the database" section.

Checklist

  • I read CONTRIBUTING.md.
  • This change is to the docs, not to a wrapper's source (those go in the wrapper's own repo).
  • I built the site locally and the affected pages render correctly.
  • Links I added or changed resolve, including the wrapper-switched variants where relevant.
    • the trigger SQL links will resolve once wrapper PR 218 is merged. It will be merged in before this one.
  • No security-sensitive information is included (see SECURITY.md).

…nt updating it

Replace the inline copies of the KMS Encryption Plugin's PostgreSQL and
MySQL trigger SQL with links to the files the wrapper repo maintains, so
the SQL has a single source. The per-column CREATE TRIGGER examples stay
on the page.

Add "Updating the trigger SQL", which explains how to check the installed
version from its database comment, when to re-run the file, and lists
the versions so far.
@aaron-congo
aaron-congo requested a review from a team as a code owner October 20, 2026 23:30
@aaron-congo
aaron-congo merged commit b5cc109 into main Oct 21, 2026
6 checks passed
@aaron-congo
aaron-congo deleted the docs/kms-trigger-sql-source branch October 21, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants