feat: migrate to self-hosted server with Google OAuth#1
Merged
Conversation
BREAKING: v2.0.0 — new auth flow (--login), uploads to self-hosted server instead of GCS. 1Password CLI no longer required.
Desktop app client secrets are not confidential per Google's OAuth spec for installed applications — required by Google's token endpoint even with PKCE.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
server/): Flask app that accepts authenticated uploads via Google ID tokens and serves files publicly. Includes cleanup thread (deletes files >2 years old). Docker image built by CI and pushed toghcr.io/transitapp/image-upload-server.--login) and HTTP POST to the self-hosted server. Zero external dependencies (stdlib only).image-upload-transit --loginonce after upgrading. 1Password CLI is no longer required.Changes
server/server.py— Flask upload/serve/health server with Google JWT validationserver/Dockerfile,server/requirements.txt— Docker packaging.github/workflows/server-image.yml— CI: build + push server image to GHCRimage_upload_transit.py— v2.0.0: OAuth PKCE auth, HTTP upload, removed GCS/1P codetests/test_server.py— 13 server teststests/test_upload.py— Updated CLI tests (removed 1P tests, added auth + upload tests)Formula/image-upload-transit.rb— Updated caveats.github/workflows/release.yml— Updated formula templateTest plan
pytest tests/ -v)image-upload-transit --login→ upload test file → verify public URL🤖 Generated with Claude Code