Skip to content

ci(ci): Remove git-over-SSH from CI jobs - #5383

Draft
alee1246 wants to merge 1 commit into
mainfrom
alee1246/CIEXE-2961/remove-git-ssh
Draft

alee1246 wants to merge 1 commit into
mainfrom
alee1246/CIEXE-2961/remove-git-ssh

Conversation

@alee1246

@alee1246 alee1246 commented Dec 4, 2026 •

Copy link
Copy Markdown

Motivation

GitLab CI jobs in gitlab-runner must stop using direct git-over-SSH (TCP port 22 to github.com) as part of the Kubernetes namespace egress lockdown. DataDog/browser-sdk is a public repository and already uses dd-octo-sts and commit-headless for authenticated GitHub writes, so the remaining SSH deploy key is no longer needed.

Refs: CIEXE-2961

Changes

  • Git remote protocol and SSH agent

    • Before: CI jobs set origin to git@github.com:DataDog/browser-sdk.git, started ssh-agent, loaded ci.browser-sdk.github_deploy_key from AWS SSM, and ran ssh-keyscan for github.com.
    • After: CI jobs use https://github.com/DataDog/browser-sdk.git with no ssh-agent or deploy key. Read-only git operations (fetch, pull, ls-remote) run over public HTTPS without credentials.
  • Staging reset writes (signed commits)

    • Before: The scheduled staging reset job pushed unsigned commits to main and the old staging branch (relying on the SSH deploy key to bypass require-signatures-github on main), and force-pushed the new staging branch over SSH.
    • After: The job pushes signed (Verified) commits to main and the old staging branch via commit-headless with the existing self.gitlab.commit OctoSTS token, and creates or force-updates the new staging branch ref through the GitHub Refs API.

Test instructions

  1. On this PR pipeline, confirm check-staging-merge and check-squash-into-staging pass over HTTPS without SSH.
  2. After merge to main:
    • Run staging-reset-scheduled (or observe the next scheduled run) and confirm:
      • main gets a Verified staging(ci): Bump staging to staging-NN commit.
      • staging-NN points to that commit SHA.
      • The previous staging-MM branch has .gitlab-ci.yml removed.
    • Run bump-chrome-version-scheduled with an older CHROME_PACKAGE_VERSION override and confirm it opens a PR with a Verified commit (then close the test PR and branch).
  3. After verification, remove the GitHub deploy key from repository settings and delete the ci.browser-sdk.github_deploy_key parameter from AWS SSM (us-east-1).

Checklist

  • Tested locally (yarn typecheck, yarn eslint, yarn prettier --check, check-pr-title.ts)
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum Salesforce 195.92 KiB 195.92 KiB 0 B 0.00% ✅
Rum 195.89 KiB 195.89 KiB 0 B 0.00% ✅
Rum Salesforce Profiler 7.81 KiB 7.81 KiB 0 B 0.00% ✅
Rum Profiler 7.81 KiB 7.81 KiB 0 B 0.00% ✅
Rum Salesforce Recorder 32.80 KiB 32.80 KiB 0 B 0.00% ✅
Rum Recorder 32.80 KiB 32.80 KiB 0 B 0.00% ✅
Logs 60.43 KiB 60.43 KiB 0 B 0.00% ✅
Rum Slim 151.28 KiB 151.28 KiB 0 B 0.00% ✅
Worker 24.23 KiB 24.23 KiB 0 B 0.00% ✅
Rum Shopify 227.44 KiB 227.44 KiB 0 B 0.00% ✅
Rum Shopify Profiler 7.81 KiB 7.81 KiB 0 B 0.00% ✅
Rum Shopify Recorder 4.85 KiB 4.85 KiB 0 B 0.00% ✅
Early Collection 309 B 309 B 0 B 0.00% ✅

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 78.11% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: cd90931 | Docs | View more details | Give us feedback!

This branch has not been deployed

No deployments
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.

1 participant