Repository navigation
Add encrypted GitLab token linking for iPraktikum sync - #16
Merged
Merged
Conversation
This was referenced Oct 18, 2026
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.
What changes
Add the
gitlab-tokenstrategy so a Gropius account can link a GitLab account and supply credentials to the iPraktikum sync worker through the existing internal token API.GROPIUS_GITLAB_TOKEN_ENCRYPTION_KEY; censored strategy configuration does not disclose credentials.The implementation follows the existing strategy registration, account linking, and update-action interfaces. No database migration is required.
Validation
npm run build: passed.node --test test/gitlab-token.test.mjs: 3 tests passed, covering encryption/tampering, identity linking/rotation, and validation failures preserving the existing credential.--max-warnings 0: passed.git diff --check: passed.Deployment
Set a persistent base64-encoded 32-byte
GROPIUS_GITLAB_TOKEN_ENCRYPTION_KEYand back it up with the login data. This supports the companion backend adapter; the deployment overlay supplies the encryption-key environment variable.Related PRs
Backend adapter · Deployment and merge order