Commit Graph

36 Commits

Author SHA1 Message Date
Benjamin
8bda0ae1b9 ci: use -tags=integration to match build tags 2025-09-26 23:32:20 +02:00
Benjamin
8d6f71d69d fix: chain update prev_hash via UPDATE during chain rebuild (no INSERT) 2025-09-26 23:32:20 +02:00
Benjamin
84bce9af0b logging: remove private key print; downgrade OAuth PII logs to debug 2025-09-26 23:32:20 +02:00
Benjamin
ef49dca8cd feat: http add /healthz alias; ignore local .gocache 2025-09-26 23:32:19 +02:00
Benjamin
76c2e8de4e feat: enhance admin dashboard with chain integrity verification
- Add chain integrity verification system for document signatures
- Implement VerifyDocumentChainIntegrity method in AdminRepository
- Add ChainIntegrityResult struct to track validation status
- Display chain integrity status in admin document details page
- Add API endpoint for programmatic chain integrity checks
- Add admin access link in main interface for authorized users
- Update templates to show integrity verification results
- Add admin configuration to docker-compose environment
2025-09-26 21:27:17 +02:00
Benjamin
53aa233f66 feat: add admin dashboard with document and signature management
- Admin middleware with ACKIFY_ADMIN_EMAILS environment variable authentication
- Dashboard view listing all documents with signature counts (/admin)
- Document details view showing signataires and metadata (/admin/docs/{docID})
- Read-only admin repository with dedicated database connection
- Responsive UI templates consistent with existing design
- Secure route protection and proper error handling

Configuration: Set ACKIFY_ADMIN_EMAILS="email1@domain.com,email2@domain.com"
2025-09-23 23:03:08 +02:00
Benjamin
dd9834792f build: clean docker file 2025-09-23 22:46:21 +02:00
Benjamin
38e98a2e90 doc: add video as mp4 format 2025-09-20 12:27:20 +02:00
Benjamin
be7b3404a8 doc: improve gifs size v1.0.0 2025-09-19 23:46:25 +02:00
Benjamin
cd20de6624 doc: add videos screen captures 2025-09-19 23:41:34 +02:00
Benjamin
c3269936cc feat: update docker-compose db_dsn 2025-09-19 23:24:57 +02:00
Benjamin
16e7b60e69 ci: align IMAGE_TAG across build and security jobs 2025-09-19 23:03:12 +02:00
Benjamin
c5264b8cfe refactor: improve code formatting in config test file
Align environment variable assignments in test setup for better readability and consistency across all test functions.
2025-09-16 00:35:23 +02:00
Benjamin
297ada2c78 feat: complete migration to ACKIFY_ prefixed environment variables
Update all documentation, tests, and configuration files to use consistent
ACKIFY_ prefixed environment variable names. This ensures proper namespacing
and avoids conflicts with system environment variables.

- Update test files with new variable names
- Standardize documentation examples in README files
- Fix Docker compose configurations and install scripts
- Update error messages and warnings to use new variable names
2025-09-16 00:31:53 +02:00
Benjamin
014078303d feat: add organisation support to templates and improve Docker configuration
- Add organisation field to signature handlers and page data
- Update Docker compose to use ACKIFY_DB_DSN environment variable
- Remove redundant blank line in router setup
2025-09-15 23:58:10 +02:00
Benjamin
1a41d15df9 refactor: remove redundant comments and improve code readability
Remove trivial comments that duplicate what the code already expresses clearly.
Keep only essential documentation for public exports as per Go conventions.
This improves code maintainability and follows the principle that code should
be self-documenting.
2025-09-15 22:59:50 +02:00
Benjamin
aebef77434 feat: standardize environment variable names with ACKIFY_ prefix
- Renamed all environment variables to use consistent ACKIFY_ prefix
- Updated configuration files, Docker compose, and build documentation
- Modified database connection variables and OAuth configuration
- Updated crypto key environment variable reference
- Ensured consistency across all configuration files
2025-09-15 21:45:11 +02:00
Benjamin
609cdfce4d feat: migrate templates from embedded filesystem to file-based system
- Move templates from webtemplates/templates/ to templates/
- Replace embedded filesystem with filesystem-based template loading
- Add ACKIFY_TEMPLATES_DIR environment variable for custom template paths
- Update Dockerfile to copy templates and set default template directory
- Improve template resolution with fallback paths for development
- Remove webtemplates package and embedded filesystem dependencies
- Update BUILD.md documentation for template configuration
2025-09-15 20:56:28 +02:00
Benjamin
ee64839bc8 fix: correct Docker migration service configuration
- Fix ackify-migrate service to run migrate binary instead of main server
- Add entrypoint override to bypass default ENTRYPOINT in Docker image
- Copy migrations directory to Docker image for migrate binary access
- Update migrate binary with better error handling and code quality
2025-09-15 16:53:15 +02:00
Benjamin
54aa967e79 feat: update Docker configuration for unified binary structure
- Rename binary from ackify-ce to ackify for consistency
- Add migrate binary build and deployment
- Add migration service to docker-compose with proper dependency chain
- Ensure migrations run before main service startup
- Update dependencies from migration system integration
2025-09-14 23:53:42 +02:00
Benjamin
78da25559a fix: prevent invalid Docker tags on release builds 2025-09-14 23:11:52 +02:00
Benjamin
c1595ffe3e feat: migrate templates to embedded filesystem
- Move templates from web/templates/ to webtemplates/templates/
- Replace file-based template loading with Go embed
- Remove external template directory dependency from Dockerfile
- Add webtemplates package with embedded template functionality
- Include comprehensive tests for embedded templates
- Update server initialization to use new embedded template system

This change makes the application self-contained by embedding templates
directly in the binary, eliminating the need for external template files
at runtime.
2025-09-14 21:37:13 +02:00
Benjamin
bde1049343 feat: implement standalone SQL migration system
- Add golang-migrate based migration CLI in cmd/migrate/
- Extract hardcoded SQL migrations from connection.go to proper migration files
- Create 0001_init migration with complete signatures table schema
- Remove embedded migrations from Go code for cleaner separation
- Support up/down/version/drop migration operations
- Migration files follow semantic versioning starting at 0001
2025-09-14 17:59:33 +02:00
Benjamin
18c8d61d75 feat: migrate to chi router for ee integration 2025-09-14 15:54:51 +02:00
Benjamin
dbe27434e4 fix: gofmt 2025-09-13 22:36:55 +02:00
Benjamin
c38558fea6 feat: refactor Ackify to support CE/EE separation
- Move web server logic to pkg/web package for external imports
- Rename cmd/ackify to cmd/community for clarity
- Create NewServer(multitenant bool) function for EE integration
- Add basic unit tests for Community Edition
- Update Dockerfile to build from cmd/community
- Add comprehensive build and deployment documentation

This change enables the Enterprise Edition to import and extend
the Community Edition while maintaining clean separation.
2025-09-13 22:28:27 +02:00
Benjamin
887d36c333 doc: make english readme as default 2025-09-11 18:05:11 +02:00
Benjamin
829db768e0 doc: make english readme as default 2025-09-11 17:51:45 +02:00
Benjamin
0c07f7bc33 add screenshots to readme 2025-09-11 10:24:51 +02:00
Benjamin
141fdb7f53 add screenshots 2025-09-11 10:22:39 +02:00
Benjamin
faefc9061d fix: suffix _utc & _b64 on sql fields and struct name 2025-09-10 21:28:48 +02:00
Benjamin
632ed6f1c2 fix: ED25519 format from install script 2025-09-10 21:13:51 +02:00
Benjamin
6e828a98ba fix: bad delimiter for sed on install script 2025-09-10 20:11:33 +02:00
Benjamin
3a6ec4c57c fix: improve year on documentation 2025-09-10 20:08:13 +02:00
Benjamin
6608bd7dc2 feat: add install script 2025-09-10 20:03:24 +02:00
Benjamin
62f8a56c7a feat: initial project setup
Add complete Go application for cryptographic document signature validation with OAuth2 authentication, Ed25519 signatures, and PostgreSQL storage following clean architecture principles.
2025-09-10 17:10:22 +02:00