Posts

Showing posts with the label IAM

Changing the Default Terminal to Terminator on Ubuntu

Image
Terminator is a powerful tool for developers, allowing you to manage multiple terminal sessions in a single window. Features like splitting panes, tabs, and simultaneous input can significantly boost your productivity. Step 1: Install Terminator First, install Terminator using the apt package manager. sudo apt update sudo apt install terminator -y The -y option automatically answers 'yes' to any prompts during the installation process, streamlining the setup. Step 2: Set as the System Default Ubuntu uses a utility called update-alternatives to manage default applications. We'll use this tool to change the default terminal emulator ( x-terminal-emulator ) to Terminator. Run the Configuration Command Enter the following command in your terminal. A list of available terminals will appear. sudo update-alternatives --config x-terminal-emulator Select Terminator From the resulting list, enter the selection number corresponding to terminator and press Enter. ...

Securely Connect to GCP Cloud SQL from Your Local Network Using Cloud SQL Auth Proxy

In the early stages of development on Google Cloud Platform (GCP), I needed to directly connect to the production Cloud SQL (PostgreSQL) instance for debugging and testing. Although Cloud SQL does provide a public IP address, it requires registering the client's IP address for access, so I decided to look for another way. Due to GCP’s strict security policies—such as requiring IAM authentication and often disabling public IP access—direct access can be challenging. That's where the Cloud SQL Auth Proxy comes in. It creates a secure tunnel from my local machine to GCP’s Cloud SQL instance using IAM credentials. Why Use the Cloud SQL Auth Proxy? Secure connections: All traffic is encrypted using TLS 1.3. IAM-based authentication: No need to manage static passwords or SSL certificates. No public IP required: You can connect even if your Cloud SQL instance has only a private IP. Automatic credential management: The proxy handles authentication and token refresh. ⚠️ Important: ...