Kloudle
academy

How to disable the Database flag remote access for Cloud SQL on the SQL Server instance in Google Cloud

Riyaz Walikar
#gcp#cloudsecurity#database
Feature image

Introduction

The remote access option controls the execution of stored procedures from local or remote servers on which instances of SQL Server are running. This default value for this option is 1. This grants permission to run local stored procedures from remote servers or remote stored procedures from the local server. To prevent local stored procedures from being run from a remote server or remote stored procedures from being run on the local server, this must be disabled.

The remote access option controls the execution of local stored procedures on remote servers or remote stored procedures on local server. remote access functionality can be abused to launch a Denial-of-Service (DoS) attack on remote servers by off-loading query processing to a target, hence this should be disabled.

Steps to disable the “remote access” flag using Google Cloud UI

  1. Login to GCP and navigate to the Cloud SQL Instances page in the Google Cloud Console by visiting https://console.cloud.google.com/sql/instances

  2. Select the SQL Server for which you want to configure the database flag

    SQL Server

  3. Click on Edit button

    Edit SQL Server

  4. Scroll down to the Flags and parameters section

    Flags and parameters section

  5. To set a flag that has not been set on the instance before, click Add Flag, choose the flag remote access from the drop-down menu, and set its value to off.

    remove remote access

  6. Click on Save button

    Save settings

  7. Confirm the changes under Database flags and parameters under Configuration section on the Overview page

    overview flags Page

← Back to Academy