GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/secretmanager at main · GoogleCloudPlatform/java-docs-samples

Expand file tree

/

secretmanager

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

secretmanager

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Google Secret Manager

Open in Cloud Shell

Google Secret Manager provides a secure and convenient tool for storing API keys, passwords, certificates and other sensitive data. These sample Java applications demonstrate how to access the Secret Manager API using the Google Java API Client Libraries.

Prerequisites

Enable the API

You must enable the Secret Manager API for your project in order to use these samples

Set Environment Variables

You must set your project ID in order to run the tests

$ export GOOGLE_CLOUD_PROJECT=<your-project-id-here>

Grant Permissions

You must ensure that the user account or service account you used to authorize your gcloud session has the proper permissions to edit Secret Manager resources for your project. In the Cloud Console under IAM, add the following roles to the project whose service account you're using to test:

  • Secret Manager Admin (roles/secretmanager.admin)
  • Secret Manager Secret Accessor (roles/secretmanager.secretAccessor)

More information can be found in the Secret Manager Docs

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.