Skip to content

Question: Need documentation : How to use loginByGCP(), How to generate JWT token? #243

@vikasthange

Description

@vikasthange

Not an issue, just question. I apologies if this is not right forum for question.

I have been struggling to find out how to actually use GCP Auth with Vault as below script example. I am unable to find out how to get JWT token. Can someone please point to documentation or link?

AuthResponse response = vault.auth().loginByGCP("role goes here", "jwt token goes here");

In my case GCP Service account is assigned to my jenkins pod which has IAM role and vault name space has already configured to use GCP Auth login. However I am not able to find any documentation on how to generate JWT token from GCP service account assigned to my jenkins pod (vm). I would highly appreciate help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions