Replies: 1 comment
-
hey @ronlhayes Here is the snippet.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for a way to authenticate to GCP using GCE. HCP has an example for IAM but not for GCE. Spent much time looking but nothing aside from using the CLI. Finally tried ChatGPT for a solution and got the code below but appears it is not valid (or uses an older version?). Any help greatly appreciated!
using VaultSharp;
using VaultSharp.V1.AuthMethods;
using VaultSharp.V1.AuthMethods.Gcp;
using System;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
string vaultAddress = "http://your-vault-address:8200";
string role = "my-role";
}
Beta Was this translation helpful? Give feedback.
All reactions