BigqueryΒΆ
Pre-requisitesΒΆ
To create an Instance Secret for securing BigQuery credentials, you must have the following information:
Access Permissions in DataOSΒΆ
To create an Instance Secret in DataOS, at least one of the following role tags must be assigned:
-
roles:id:data-dev
-
roles:id:system-dev
-
roles:id:user
NAME β ID β TYPE β EMAIL β TAGS ββββββββββββββΌββββββββββββββΌβββββββββΌβββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ Iamgroot β iamgroot β person β iamgroot@tmdc.io β roles:id:data-dev, β β β β roles:id:user, β β β β users:id:iamgroot
Checking Assigned Roles
Use the following command to verify assigned roles:
If any required roles are missing, contact a DataOS Operator or submit a Grant Request for role assignment.
Alternatively, if access is managed through use cases, ensure the following use case is assigned:
-
Manage All Instance-level Resources of DataOS in User Layer
To validate assigned use cases, refer to the Bifrost Application Use Cases section.
Bifrost Governance
Source System RequirementsΒΆ
-
Project ID: The BigQuery project ID used to identify your Google Cloud project. You can retrieve this from the Google Cloud Console by navigating to the project dashboard and locating the Project ID under project information.
-
Email ID: The email address associated with the service account used to access BigQuery. This can be found in the IAM & Admin > Service Accounts- section of the Google Cloud Console by selecting the relevant service account and viewing its details.
-
JSON Key File: The path to the JSON key file for the service account, used for authentication. To obtain this, go to IAM & Admin > Service Accounts*- in the Google Cloud Console, select the service account, click Keys, and download the JSON key file by selecting Add Key > JSON**. Ensure the file is securely stored and note its path.
Ensure you have these credentials ready before proceeding with the Instance Secret creation process.
Create an Instance Secret for securing Bigquery credentialsΒΆ
Bigquery is a data warehouse that serves as a centralized repository for structured data, enabling efficient query and analysis.
To create a Bigquery Instance 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 Bigquery Instance Secret. Depending on your access needs (read-only or read-write), start with the corresponding YAML template provided below.
# Google Bigquery Read Instance-secret Manifest
name: ${bigquery-depot-name}-r # Unique identifier for Resource, replace ${bigquery-depot-name} with depot name
version: v1 # Manifest version
type: instance-secret # Type of the Resource
description: ${description} # Purpose of the Instance-secret
layer: user # DataOS layer
instance-secret:
type: key-value-properties # Secret type
acl: r # Access control: 'r' for read-only
data:
projectid: ${project-name} # Replace with Bigquery project ID
email: ${email-id} # Replace with Bigquery email ID
files:
json_keyfile: ${json-file-path}
# Google Bigquery Read-Write Instance-secret Manifest
name: ${bigquery-depot-name}-rw # Unique identifier for Resource, replace ${bigquery-depot-name} with depot name
version: v1 # Manifest version
type: instance-secret # Type of the Resource
description: ${description} # Purpose of the Instance-secret
layer: user # DataOS layer
instance-secret:
type: key-value-properties # Secret type
acl: rw # Access control: 'rw' for read-write
data:
projectid: ${project-name} # Replace with Bigquery project ID
email: ${email-id} # Replace with Bigquery email ID
files:
json_keyfile: ${json-file-path}
Resource meta section
The Bigquery Instance Secret manifest includes a Resource meta section with essential metadata attributes common to all resource types. Some attributes in this section are optional, while others are mandatory. For more details, refer to the configurations section.
Instance-secret specific section
This section focuses on attributes specific to Bigquery Instance Secrets. It includes details like:
-
type
: Specifies the Instance Secret type (key-value-properties). -
acl
: Access control level (read-only or read-write). -
data
: Contains sensitive information such as Azure endpoint suffix, storage account key, and storage account name.
For more information, refer to the Attributes of Instance-secret specific section.
Step 2: Apply the manifestΒΆ
To create the Bigquery Instance Secret within DataOS, use the apply
command. Since Instance Secrets are Instance-level resources, do not specify a workspace while applying the manifest.
Step 3: Validate the Instance SecretΒΆ
To validate the proper creation of the Bigquery Instance Secret in DataOS, use the get
command.
To get the list of all the Instance Secret within the Dataos environment execute the following command.
dataos-ctl resource get -t instance-secret -a
INFO[0000] π get...
INFO[0000] π get...complete
NAME | VERSION | TYPE | WORKSPACE | STATUS | RUNTIME | OWNER
-----------------------------|---------|-----------------|-----------|--------|---------|------------------------
abfssv2alpha-r | v1 | instance-secret | | active | | iamgroot
abfssv2alpha-rw | v1 | instance-secret | | active | | iamgroot
abfsswithoutmetastore-r | v1 | instance-secret | | active | | thisisthor
abfsswithoutmetastore-rw | v1 | instance-secret | | active | | thisisthor
Alternatively, you can also check on Metis UI by searching the Instance Secret by name.

Delete the Instance SecretΒΆ
To delete an Instance Secret, use one of the following methods:
Method 1ΒΆ
Specify the Resource type and Instance Secret name in the delete
command.
Method 2ΒΆ
Copy the Instance Secret name, version, and Resource-type from the output of the get
command separated by '|' enclosed within quotes and use it as a string in the delete command.
Method 3ΒΆ
Specify the path of the manifest file and use the delete
command.