Kodr Secure Referral Archive
Securely archives selected Gravity Forms submissions to a private Amazon S3 bucket, off the WordPress database.
by Kodr Digital Ltd · github.com/alex-kodr/kodr-secure-referral-archive · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/alex-kodr/kodr-secure-referral-archive/archive/refs/heads/main.zipGravity Forms Secure Offsite Submissions to AWS S3 Bucket
A WordPress plugin that securely archives selected Gravity Forms submissions to a private Amazon S3 bucket, off the WordPress database, for organisations that need durable, confidential storage of referral data.
See readme.txt for the WordPress-facing plugin readme (installation, changelog
summary). This file is the developer-facing entry point.
Documentation
- docs/architecture.md — component overview and data flow
- docs/security.md — security model and guarantees
- docs/database.md — queue table schema
- docs/roadmap.md — build phases and current status
- docs/aws-setup.md — S3 bucket and IAM setup
Key decisions
- PHP 8.4+, WordPress 7.0+, Gravity Forms 2.10+
- AWS credentials are read only from the
KODR_GF_ARCHIVEconstant inwp-config.php— never stored in the database - Each submission is archived as JSON and a PDF (via TCPDF)
- Archiving is queue-based and processed in the background via WP-Cron; nothing is uploaded during the visitor's request
- No submitted form data ever appears in logs or alert emails
- Archiving is enabled per Gravity Form, and disabled by default
- File uploads attached to forms are out of scope for version 1
- Once a submission is fully archived to S3, the source Gravity Forms entry is permanently deleted automatically — sensitive data should not linger in the database. Entries that never successfully archive are left alone and fall back to Gravity Forms' own retention policy
Development
composer install
composer test
No local WordPress environment is bundled with this repository. Test changes on
a development or staging WordPress site with Gravity Forms active. Unit tests
under tests/ cover logic that doesn't require a full WordPress/Gravity Forms
runtime (e.g. entry parsing) and use invented fixture data only — never real
referral data.