Andrea Cosentino created CAMEL-27918:
----------------------------------------

             Summary: camel-hashicorp-vault: GCP IAM login (gcp-iam)
                 Key: CAMEL-27918
                 URL: https://issues.apache.org/jira/browse/CAMEL-27918
             Project: Camel
          Issue Type: Improvement
          Components: camel-hashicorp-vault
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino
             Fix For: 4.25.0


CAMEL-25675 added the gcp-gce login (the identity token of a Compute Engine 
instance) and deferred gcp-iam. The gcp-iam login of the GCP auth method of 
Vault also works outside Compute Engine: the application signs a JWT for a 
service account through the IAM Credentials API, with its Google credentials 
(Spring Vault {{GcpIamCredentialsAuthentication}}).

Proposal:
* {{authentication=gcp-iam}}, with {{role}} and {{authMountPath}} as for 
gcp-gce;
* the credentials of the Google default chain (such as GKE workload identity or 
impersonation), or {{gcpCredentialsFile}} (a service account key or an external 
account file);
* {{gcpServiceAccountId}}: the service account to sign the JWT as, needed 
unless the credentials are a service account key;
* {{com.google.cloud:google-cloud-iamcredentials}} as an optional dependency, 
needed only for gcp-iam (as the AWS SDK is for aws-iam), with its version 
managed in the parent POM.

As for the other logins: on the endpoint, the {{camel.vault.hashicorp}} options 
and the {{CAMEL_HASHICORP_VAULT_*}} environment variables.

_Claude Code on behalf of oscerd_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to