Google Cloud Storage (GCS)
Create a Secret for securing Google Cloud Storage credentials.
Prerequisites
To create a Secret for securing GCS credentials, you must have the following information:
See Secret: Access control for who can create a Secret and how access to it is managed.
Source system requirements
Project ID for the Google Cloud Project: The unique identifier of the Google Cloud project where your GCS bucket resides. You can retrieve this from the Google Cloud Console by navigating to your project dashboard and locating the *Project ID- under project information.
Email Address Associated with the Google Cloud Service Account: The email address of the service account used to authenticate and access your GCS bucket. This can be found in the IAM & Admin > Service Accounts section of the Google Cloud Console by selecting the service account and viewing its details.
JSON Key File for the Google Cloud Service Account: The path to the JSON key file used to authenticate the service account. To obtain this, navigate to IAM & Admin > Service Accounts- in the Google Cloud Console, select the relevant service account, click Keys, and download the JSON key file by selecting Add Key > JSON. Ensure the file is stored securely, and note its path.
Ensure you have these credentials ready before proceeding with the Secret creation process.
Create a Secret for securing GCS credentials
Google Cloud Storage (GCS) is an object storage system. Object stores are distributed storage systems designed to store and manage large amounts of unstructured data.
To create a Google Cloud Storage (GCS) Secret in DataOS, ensure you have access to the DataOS Command Line Interface (CLI) and the required permissions. Follow the steps below to complete the creation process efficiently and securely.
Step 1: Create a manifest file
Begin by creating a manifest file to hold the configuration details for your GCS Secret.
name: ${{gcs-secret-name}}
version: v2alpha
type: secret
tags:
- ${{tag-1}}
- ${{tag-2}}
description: "Credentials for gcs depot"
layer: user
secret:
type: key-value
data:
gcp_json_key: ${{gcs-key-json}}For more information about each attribute, refer to the configurations section.
Step 2: Apply the manifest
To create the GCS Secret within DataOS, use the apply command.
Example Usage:
Step 3: Validate the Secret
To validate the proper creation of the GCS Secret in DataOS, use the get command.
Expected Output:
To get the list of all the Secrets within the Dataos environment, execute the following command.
Expected Output:
Delete the Secret
To delete the GCS Secret, use one of the following commands:
Specify the Resource type and Secret name in the delete command.
Example Usage:
Last updated
Was this helpful?