SkillAgentSearch skills...

Gsm

A simple golang package for accessing secrets on Google Cloud Secret Manager.

Install / Use

/learn @kioie/Gsm
About this skill

Quality Score

0/100

Category

Operations

Supported Platforms

Universal

README

<p align="center"> <a href="url"> <img src="https://github.com/kioie/gcp-secret-manager/blob/master/.github/Logo.gif" alt="Go GCP Secret Manager" width=400 height=150> </a> <h2 align="center">Go GCP Secret Manager</h2> <p align="center"> If you are working on GCP Secret Manager, this package is a useful place to start. It offers simple and easy integrations. Use this package to get started. <br> </p> </p> <br>

codecov License Actions Status Go Report Card Open Source Love

A simple golang package for reading, writing, deleting, storing and editing secrets on Google Cloud Secret Manager.

With extensive test coverage and benchmarks.

Features

  • Lightweight and fast
  • Native Go implementation.
  • Context based client authorization
  • Integrated API wrapper
  • Improved API error handlers
  • Improved CRUD operations on GCP Secrets

Installation

Install the package to your $GOPATH with the go tool from shell:

$ go get github.com/kioie/gcp-secret-manager

Requirements

gcp-secret-manager package tested against Go >= 1.13.x.

Usage

Import the gcp-secret-manager package

import "github.com/kioie/gcp-secret-manager"

Declare global variable ProjectID

ProjectID="<your-project-id>"

Example

package main  
  
import (  
   "fmt"  
   "github.com/kioie/gcp-secret-manager"  
)  
  
func main() {  
 //Declare ProjectID
   ProjectID = "secret-manager-test"  
   //Check if "my-secret" exists
   fmt.Println(gcp_secret_manager.SecretExists("my-secret"))  
   //Get the secret  
   result, _ := gcp_secret_manager.GetSecret("my-secret", "")  
   fmt.Println(result)
}

Contributors

<a href="https://github.com/kioie/gcp-secret-manager/graphs/contributors"> <img src="https://contributors-img.web.app/image?repo=kioie/gcp-secret-manager" /> </a>

Copyright

Copyright © 2020 Eddy Kioi

Go GCP-SECRET-MANAGER package released under Apache License .

Related Skills

View on GitHub
GitHub Stars7
CategoryOperations
Updated2mo ago
Forks3

Languages

Go

Security Score

90/100

Audited on Jan 11, 2026

No findings