Repository navigation
|
Hello, I've been looking at https://developer.hashicorp.com/vault/tutorials/auth-methods/google-workspace-oauth Has anyone done something similar? Any YAML snippets you could share? |
Answered by
csatib02
Nov 3, 2024
Replies: 1 comment
|
Hi @bojanraic,
I'm thinking of something like this:
apiVersion: "vault.banzaicloud.com/v1alpha1"
kind: "Vault"
metadata:
name: "vault"
namespace: "vault-namespace"
spec:
auth:
- type: jwt
path: google-workspace
description: "Login via Google Workspace"
config:
oidc_discovery_url: "https://accounts.google.com"
bound_issuer: "https://accounts.google.com"
default_role: "google-user-role"
# Configure your client ID and secret from Google Workspace OAuth setup
oidc_client_id: "<GOOGLE_CLIENT_ID>"
oidc_client_secret: "<GOOGLE_CLIENT_SECRET>"
roles:
- name: "google-user-role"
bound_audiences:
- "<GOOGLE_CLIENT_ID>"
user_claim: "email"
groups_claim: "groups"
policies: ["allow_secrets"]
ttl: "1h"
max_ttl: "24h"A JWT example that might help you: https://github.com/bank-vaults/vault-operator/blob/main/deploy/examples/vault-config-jwt.yaml |
0 replies
Answer selected by
csatib02
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @bojanraic,
I'm thinking of something like this:
JWT/OIDC Auth Method: Use Vault's JWT/OIDC auth method to integrate with Google Workspace.