Internal infrastructure

Sourcegraph deployments

Internal deployments are documented in the deployments.

Code host testing instances

We maintain a collection of code hosts for testing purposes defined in our infrastructure/dogfood cluster.

GitHub Enterprise

URL: https://ghe.sgdev.org

Credentials: 1Password

Additional information about ghe.sgdev.org

Bitbucket Server

URL: https://bitbucket.sgdev.org

Credentials: 1Password

Phabricator

URL: http://phabricator.sgdev.org/

Credentials: 1Password

Gitolite

Git URL: git@gitolite.sgdev.org

Credentials: 1Password

Gerrit

URL: https://gerrit.sgdev.org

Git URL: gerrit-ssh.sgdev.org

Credentials: Google Auth

Customer environment replicas

We maintain separate AWS accounts with Sourcegraph instances and other infrastructure that mimic various customers’ environments for testing purposes. See ”Customer environment replicas and managed instances” on 1Password for the list.

Accessing sourcegraph internal infrastrcture

To access this AWS account:

  1. Request an AWS user ID by asking a member of the #distributioneers team in slack.
  2. Once you have your credentials visit https://aws.amazon.com/console/.
  3. Sign into AWS using those details and Account ID `sourcegraph.

Accessing customer environment replicas

To access these AWS accounts:

  1. Sign into AWS using your account (which must be under Sourcegraph’s main AWS account).
  2. Visit https://signin.aws.amazon.com/switchrole.
  3. Enter the details from the instance below that you wish to access.

Now you can switch between any added roles and your Sourcegraph AWS account using the menu in the top right of AWS.

Creating a new customer environment replica

  1. Visit our organization accounts on AWS.
  2. Create an account that will act as the access role shared by everyone on the team.
    • Name: <NAME><TYPE>SharedAccessRole, where <NAME> is the customer name and <TYPE> is Replica or Managed. (Examples: AcmeCorpReplicaSharedAccessRole or AcmeCorpManagedSharedAccessRole.)
    • Email: use any unused email address. (Example: alice+acme-corp-replica-shared@sourcegraph.com.)
  3. Move the account under the organization that you wish to allow this user to access https://console.aws.amazon.com/organizations/home?#/browse/ou-48vq-waaj46mo