Repository navigation
Conversation
Bundles Sizes Evolution
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: cd90931 | Docs | View more details | Give us feedback! |
This branch has not been deployed
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.
Motivation
GitLab CI jobs in
gitlab-runnermust stop using direct git-over-SSH (TCP port 22 togithub.com) as part of the Kubernetes namespace egress lockdown.DataDog/browser-sdkis a public repository and already usesdd-octo-stsandcommit-headlessfor authenticated GitHub writes, so the remaining SSH deploy key is no longer needed.Refs: CIEXE-2961
Changes
Git remote protocol and SSH agent
origintogit@github.com:DataDog/browser-sdk.git, startedssh-agent, loadedci.browser-sdk.github_deploy_keyfrom AWS SSM, and ranssh-keyscanforgithub.com.https://github.com/DataDog/browser-sdk.gitwith nossh-agentor deploy key. Read-only git operations (fetch,pull,ls-remote) run over public HTTPS without credentials.Staging reset writes (signed commits)
mainand the old staging branch (relying on the SSH deploy key to bypassrequire-signatures-githubonmain), and force-pushed the new staging branch over SSH.mainand the old staging branch viacommit-headlesswith the existingself.gitlab.commitOctoSTS token, and creates or force-updates the new staging branch ref through the GitHub Refs API.Test instructions
check-staging-mergeandcheck-squash-into-stagingpass over HTTPS without SSH.main:staging-reset-scheduled(or observe the next scheduled run) and confirm:maingets a Verifiedstaging(ci): Bump staging to staging-NNcommit.staging-NNpoints to that commit SHA.staging-MMbranch has.gitlab-ci.ymlremoved.bump-chrome-version-scheduledwith an olderCHROME_PACKAGE_VERSIONoverride and confirm it opens a PR with a Verified commit (then close the test PR and branch).ci.browser-sdk.github_deploy_keyparameter from AWS SSM (us-east-1).Checklist
yarn typecheck,yarn eslint,yarn prettier --check,check-pr-title.ts)