Announcing our Migration from MySQL to PostgreSQL! 🚀 #232
santiagolizardo
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We are excited to announce that Reconmap has officially migrated its core relational database engine from MySQL to PostgreSQL!
This is a significant architectural improvement that affects our API backend (.NET 10), Keycloak Identity Provider setup, Docker Compose orchestrations, and Kubernetes/Helm deployments.
Here is a breakdown of why we made this transition and what it means for the Reconmap community.
Why PostgreSQL? The Strategic Decisions
1. True Open Source & Permissive Licensing (Goodbye Oracle)
While MySQL is technically open-source, its stewardship under Oracle has historically raised licensing and governance concerns within the open-source community (GPL vs. commercial dual-licensing). PostgreSQL is managed by a highly active, independent global community and is released under the PostgreSQL License (a liberal, permissive license similar to BSD/MIT).
Switching to PostgreSQL guarantees that Reconmap remains free, extensible, and completely decoupled from corporate licensing risks.
2. Seamless Identity Provider Integration (Keycloak)
Keycloak, our identity and access management (IAM) solution, has native, production-grade support for PostgreSQL. Running both the core Reconmap API and Keycloak on PostgreSQL allows us to:
3. Advanced Relational & Document Features
PostgreSQL is renowned for its reliability, data integrity, and feature richness. Specifically, this migration unlocks:
JSONBstores data in a decomposed binary format, allowing us to index and query nested JSON properties with high performance.TIMESTAMPTZ).4. Direct Path to AI Integration with
pgvectorLooking ahead at our roadmap, we are building deeper AI-assisted pentesting capabilities (such as finding similarity recommendations, semantic document searching, and smart correlation engines).
PostgreSQL enables us to use
pgvectordirectly inside our database. This means we can store and query high-dimensional vector embeddings generated by LLMs without needing to introduce a complex, secondary vector database (like Milvus or Pinecone) to our deployment stack.Technical Highlights of the Migration
For developers and contributors, here is a summary of the implementation:
Pomelo.EntityFrameworkCore.MySqlforNpgsql.EntityFrameworkCore.PostgreSQLin the API.snake_casemapping configuration inOnModelCreatingto keep entity models clean, eliminating redundant[Column("NAME")]attributes.timestamptz).ghcr.io/reconmap/rest-api-db). We now pull directly from the officialpostgres:17-alpineimage in both local Docker Compose and Kubernetes configurations, mounting initialization scripts locally or via ConfigMaps.How this affects you
If you are running Reconmap locally (Docker Compose):
Because PostgreSQL is not file-compatible with MySQL, you will need to reset your local database volumes when updating your repository. To get the new PostgreSQL stack running:
The database schema and default configuration parameters will automatically seed on startup.
If you are deploying via Kubernetes / Helm:
We have ported all raw manifests and Helm templates to PostgreSQL, and the Helm values file has been updated to use the official PostgreSQL image. When upgrading your releases, refer to the updated database port
5432andPOSTGRES_credentials in your configuration maps.We would love to hear your thoughts or answer any questions you might have about this change. Let us know in the comments below.
All reactions