Accessing the Rails Console as an SRE
Table of Contents
Section titled “Table of Contents”Overview
Section titled “Overview”Site Reliability Engineers (SREs) can access the production-rails
console directly without an approval process. This document outlines two methods for accessing the console:
- Direct SSH access (recommended)
- Using Teleport
Method 1: Direct SSH Access (Recommended)
Section titled “Method 1: Direct SSH Access (Recommended)”Prerequisites
Section titled “Prerequisites”Ensure your SSH is configured as described in the gprd-bastions documentation. This should have been completed during your onboarding process.
- Open your terminal.
- Run the following command:
ssh <username>@gprd-console
. - This will directly open the
rails-console
.
Method 2: Using Teleport
Section titled “Method 2: Using Teleport”- Access the production Teleport instance: https://production.teleport.gitlab.net/web.
- In the resource section, search for
console
. - Connect to the instance using your username.
- Once connected, run the following command to access the
rails-console
:sudo gitlab-rails console