Giter Club home page Giter Club logo

googlecloudplatform / gke-vault-demo Goto Github PK

View Code? Open in Web Editor NEW
71.0 27.0 24.0 98 KB

This demo builds two GKE Clusters and guides you through using secrets in Vault, using Kubernetes authentication from within a pod to login to Vault, and fetching short-lived Google Service Account credentials on-demand from Vault within a pod.

License: Apache License 2.0

Makefile 5.31% Shell 43.55% HCL 32.85% Python 18.29%
kubernetes kubernetes-engine containers gke gke-helmsman vault hashicorp-vault gcp security

gke-vault-demo's Issues

Private GKE

This demo is not working with Private GKE and on prem vault cluster, should i pass by proxy or any clue please @chrislovecnm

Modified demo to use non-default Service Account, getting "service account name not authorized"

Hi there,
I've managed to successfully run the demo without any modifications before.
I tried to enable custom Service Account names and corresponding Vault auth roles, but am not able to get it to work.

Here are the changes I made:

  • created Service Account
apiVersion: v1
kind: ServiceAccount
metadata:
  name: <my-new-sa-name>

  • assigned name to application Pod in manifest
spec:
      serviceAccountName: <my-new-sa-name>

  • create new Kubernetes auth role in Vault
vault write auth/kubernetes/role/<my-new-sa-name>-role \
  bound_service_account_names=<my-new-sa-name> \
  bound_service_account_namespaces=default \
  policies=<my-new-policy> \
  ttl=15m

note: my-new-policy is already created

When I ran kubectl logs <pod-name>-5wpxz vault-authenticator
Here is the error I got:

2019/05/03 06:27:22 failed to get successful response: &http.Response{Status:"500 Internal Server Error", StatusCode:500, Proto:"HTTP/2.0", ProtoMajor:2, ProtoMinor:0, Header:http.Header{"Cache-Control":[]string{"no-store"}, "Content-Type":[]string{"application/json"}, "Content-Length":[]string{"51"}, "Date":[]string{"Fri, 03 May 2019 06:27:22 GMT"}}, Body:http2.transportResponseBody{cs:(*http2.clientStream)(0xc4200a4780)}, ContentLength:51, TransferEncoding:[]string(nil), Close:false, Uncompressed:false, Trailer:http.Header(nil), Request:(*http.Request)(0xc420132000), TLS:(*tls.ConnectionState)(0xc420098580)}, {"errors":["service account name not authorized"]}

Is there some change elsewhere that I should be making?

Thanks for the help

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update Terraform google to v6
  • Update Terraform google-beta to v6
  • Update Terraform http to v3
  • Update Terraform tls to v4
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

terraform
terraform/provider.tf
  • google ~> 2.12.0
  • google-beta ~> 2.12.0
  • http ~> 1.1.1
  • kubernetes ~> 1.8.1
  • null ~> 2.1.2
  • random ~> 2.1.2
  • template ~> 2.1.2
  • tls ~> 2.0.1
terraform/vault.tf

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.