Skip to content

Conversation

@rebelice
Copy link
Contributor

Summary

  • Add documentation for configuring Workload Identity with GitLab CI/CD
  • Enable secure authentication to Bytebase without long-lived credentials via OIDC token exchange
  • Include complete GitOps workflow example with SQL review and rollout using bytebase-action

Changes

  • Create new gitlab-ci.mdx with step-by-step configuration guide
  • Add token exchange example using /v1/users/me for verification
  • Add complete GitOps workflow example with SQL review and rollout stages
  • Include self-hosted GitLab support and troubleshooting section
  • Update docs.json navigation

Test plan

  • Tested token exchange flow with GitLab CI/CD pipeline
  • Verified OIDC token successfully exchanges for Bytebase access token

Closes BYT-8716

🤖 Generated with Claude Code

Add documentation for configuring Workload Identity with GitLab CI/CD,
enabling secure authentication to Bytebase without long-lived credentials.

- Create new gitlab-ci.mdx with step-by-step configuration guide
- Include token exchange example using /v1/users/me for verification
- Add complete GitOps workflow example with SQL review and rollout
- Support self-hosted GitLab instances
- Add troubleshooting section for common issues
- Update docs.json navigation to include new page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings January 15, 2026 07:55
@vercel
Copy link

vercel bot commented Jan 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
bytebase-com Ready Ready Preview, Comment Jan 15, 2026 7:57am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive documentation for configuring Workload Identity with GitLab CI/CD, enabling secure authentication to Bytebase without long-lived credentials via OIDC token exchange.

Changes:

  • Add step-by-step guide for creating and configuring GitLab CI/CD Workload Identity in Bytebase
  • Include complete GitOps workflow examples with SQL review and rollout stages
  • Add self-hosted GitLab support and troubleshooting sections

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/docs.json Add navigation entry for new GitLab CI/CD workload identity documentation
docs/administration/user-groups/workload-identity/gitlab-ci.mdx Complete documentation guide for GitLab CI/CD Workload Identity setup and usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| Field | Description | Example |
|-------|-------------|---------|
| **Name** | Display name for this identity | `GitLab Deploy` |
| **Email** | Unique email prefix (automatically appended with `@workload.bytebase.com`) | `gitlab-deploy` |
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The email field description is inconsistent with the GitHub Actions documentation. In the GitHub Actions guide (line 17), it states 'Unique email for this identity (must end with @workload.bytebase.com)' suggesting users should provide the full email. However, this documentation suggests users provide only the prefix. This inconsistency could confuse users. Please clarify whether users should provide the full email or just the prefix.

Suggested change
| **Email** | Unique email prefix (automatically appended with `@workload.bytebase.com`) | `gitlab-deploy` |
| **Email** | Unique email for this identity (must end with `@workload.bytebase.com`) | `gitlab-deploy@workload.bytebase.com` |

Copilot uses AI. Check for mistakes.
# SQL Review on merge requests
sql-review:
stage: review
image: bytebase/sql-review-action:latest
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect Docker image reference. Based on other GitLab CI/CD examples in the codebase (e.g., docs/gitops/migration-based-workflow/sql-review-ci.mdx line 63), GitLab CI should use bytebase/bytebase-action:latest, not bytebase/sql-review-action:latest. The sql-review-action is a GitHub Action and cannot be used as a Docker image in GitLab CI.

Suggested change
image: bytebase/sql-review-action:latest
image: bytebase/bytebase-action:latest

Copilot uses AI. Check for mistakes.
Comment on lines +117 to +118
sql-review --url ${BYTEBASE_URL} --token ${BYTEBASE_TOKEN} \
--file-pattern "migrations/**/*.sql"
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect command for SQL review. Based on the bytebase-action Docker image usage in other GitLab CI examples (e.g., docs/gitops/migration-based-workflow/sql-review-ci.mdx line 69), the correct command should be bytebase-action check instead of sql-review. The command format should match the established pattern used in GitLab CI pipelines.

Copilot uses AI. Check for mistakes.
@d-bytebase d-bytebase merged commit f85d2c2 into main Jan 15, 2026
10 of 11 checks passed
@d-bytebase d-bytebase deleted the vk/fec3-docs-for-workloa branch January 15, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants