v1.5.0
This release marks a major overhaul of the data layer for improved reliability and maintainability, along with significant enhancements to the build and CI process.
Added
- Enhanced Build Information: The build process now embeds the Git commit SHA and build date into the binary. A new
versionsubcommand was added to display this information, providing better traceability for builds. - CI/CD Pipeline: Implemented a GitHub Actions workflow for automated testing and building on each push, improving code quality and release automation.
- Database Unit Tests: Added a comprehensive suite of unit tests for the new
Bun-based database operations, ensuring the reliability and correctness of the data layer.
Changed
- Database Layer Overhaul: The entire database layer was refactored to use the Bun ORM instead of raw
sql.DBcalls. This simplifies queries, improves type safety, and unifies the implementation across SQLite, PostgreSQL, and MySQL. - Dependency Updates: Upgraded
golang.org/x/cryptotov0.45.0and other minor dependencies.
Fixed
- CLI Flag Redefinition: Corrected an issue where CLI flags could be defined multiple times during command setup (especially in tests), preventing panics caused by duplicate flag definitions.
- CI Workflow Permissions: Addressed a security code scanning alert by specifying correct permissions in the GitHub Actions workflow.
Changelog
- 3cc0156 drop temp. file
- c9feab6 fix up changelog writing.
- fcfa618 I only support latest unless I get a few maintainers onboard
- 4228735 write changelog in preparation for 1.5.0
- adb101f Merge branch 'main' of github.com:ToeiRei/Keymaster
- 5aae72f Potential fix for code scanning alert no. 4: Workflow does not contain permissions
- 07f917a Potential fix for code scanning alert no. 4: Workflow does not contain permissions
- febfe0b Refactor RunMigrations to handle driver creation errors and clean up unused code in bun_probe
- 6bbf640 Refactor database store implementations to remove direct SQL.DB references and streamline usage of Bun ORM
- f07fcf2 add some unit tests for bun
- 66fa2c1 Refactor AssignKeyToAccount and UnassignKeyFromAccount methods to use Bun ORM for fetching key and account details
- fc4c4c0 Refactor database store implementations to utilize Bun ORM
- 4b17f1b Start migrating MySQL and Postgres over to bun
- 75aefda Integrate Bun ORM for MySQL and PostgreSQL support; update database store implementations
- 8be8359 Enhance build process to include git commit SHA and build date in binary; update version command to display additional metadata
- eafb855 Add version subcommand and CI workflow for automated testing and builds
- 718fffd Add comprehensive test suite for Bun integration in database operations
- 4248bb2 Refactor database interactions to utilize Bun integration; update BootstrapSession model to use time.Time for date fields
- c97eef3 Add Bun integration for audit log and backup functionalities; refactor SQLite store methods for improved data handling
- b395111 Refactor database interaction to improve code clarity and efficiency; add new debug export tool for account management testing
- 4978cb1 Refactor SQLite store methods to use Bun integration for account management
- 8569418 Add Bun integration for SQLite store and refactor key management functions
- 6b07e2f Refactor flag definitions to prevent duplicate entries in command setup
- e42af28 Merge pull request #38 from ToeiRei/dependabot/go_modules/golang.org/x/crypto-0.45.0
- f2d6123 Bump golang.org/x/crypto from 0.43.0 to 0.45.0
- da57c4b Merge pull request #37 from ToeiRei/dependabot/go_modules/gomod-patch-and-minor-7afa10394a
- 38e6245 Bump modernc.org/sqlite in the gomod-patch-and-minor group