Skip to content

need kubernetes auth support with jwt #170

Closed
@zzhu2

Description

@zzhu2

We need to login vault which is with Kubernetes jwt to get the vault token.

The auth is very similar than https://github.com/BetterCloud/vault-java-driver/blob/master/src/main/java/com/bettercloud/vault/api/Auth.java#L898 loginByGCP, but will need additional parameter "path", which fortunately already in the model.

Basically it will have an interface like

public AuthResponse loginByKubeJwt(final String path, final String role, final String jwt) throws VaultException

and the builder pattern will allow modify the uri based on path parameter if it's not "/v1/auth/gcp/login"

I can create a PR for that, please let me know either way, thanks a lot.

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