Skip to content

Commit

Permalink
Update route.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasBassoOcto authored May 30, 2024
1 parent a0c71c9 commit 0a9c75d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/api/vault/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class VaultModule {
this.isKubelogged = false;
this.vaultClient = vault({
apiVersion: "v1",
endpoint: "https://vault-dev.factory.social.gouv.fr",
kubernetesPath: this.kubernetesPath,
endpoint: "https://vault-dev.factory.social.gouv.fr"
});
}

Expand All @@ -29,7 +28,7 @@ class VaultModule {
const result = await this.vaultClient.kubernetesLogin({
role: this.vaultRole,
jwt: jwt.toString(),
kubernetesPath: this.kubernetesPath,
mount_point: this.kubernetesPath,
});
this.vaultClient.token = result.auth.client_token;
} catch (error) {
Expand Down

0 comments on commit 0a9c75d

Please sign in to comment.