๐ Critical Fix for Metadata Mirroring
This release addresses a critical authentication issue that prevented metadata mirroring from working correctly, specifically fixing the "user does not exist [uid: 0, name: ]" error reported in Issue #68.
What's Fixed
๐ Authentication Issues
- Fixed critical authentication error causing "user does not exist [uid: 0]" during metadata mirroring operations (#68)
- Fixed inconsistent token handling across Gitea API calls
- Fixed metadata mirroring functions attempting to operate on non-existent repositories
- Fixed organization creation failing silently without proper error messages
โจ What's New
- Pre-flight authentication validation for all Gitea operations
- Repository existence verification before attempting metadata mirroring
- Graceful fallback to user account when organization creation fails due to permissions
- Authentication validation utilities for debugging configuration issues
- Diagnostic test scripts for troubleshooting authentication problems
๐ Improvements
- Enhanced error messages with specific guidance for authentication failures
- Better identification and logging of permission-related errors
- More robust organization creation with retry logic
- Consistent token decryption across all API operations
- Clearer error reporting for metadata mirroring failures
๐ Security
- Fixed potential exposure of encrypted tokens in API calls
- Improved token handling to ensure proper decryption before use
๐งช Testing Your Configuration
If you've experienced authentication issues, you can now validate your setup using the included diagnostic scripts:
# Test Gitea authentication
bun run src/tests/test-gitea-auth.ts
# Test metadata mirroring authentication
bun run src/tests/test-metadata-mirroring.ts
๐ฆ Docker Image
docker pull ghcr.io/raylabshq/gitea-mirror:3.2.4
docker pull ghcr.io/raylabshq/gitea-mirror:latest
๐ก Upgrade Notes
This is a patch release with no breaking changes. Simply update to the latest version to benefit from these fixes. If you've been experiencing metadata mirroring issues, this update should resolve them.
๐ Acknowledgments
Thanks to everyone who reported and helped diagnose Issue #68. Your detailed feedback was invaluable in identifying and fixing this authentication issue.
Full Changelog: v3.2.3...v3.2.4