From 13c603022f2ae667e096257620f0dfbd2426b599 Mon Sep 17 00:00:00 2001 From: Luca Berneking Date: Wed, 25 Sep 2024 10:48:10 +0200 Subject: [PATCH 1/5] Fix serviceaccount token default location --- src/auth/kubernetes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/kubernetes.ts b/src/auth/kubernetes.ts index 1d45143..5994f99 100644 --- a/src/auth/kubernetes.ts +++ b/src/auth/kubernetes.ts @@ -55,7 +55,7 @@ export class VaultKubernetesAuthClient extends AbstractVaultClient implements IV if (!this.config) { throw new Error("Kubernetes Auth Client not configured"); } - const jwt = fs.readFileSync(this.config.jwt_path ?? "/run/secrets/kubernetes.io/serviceaccount/token", "utf8"); + const jwt = fs.readFileSync(this.config.jwt_path ?? "/var/run/secrets/kubernetes.io/serviceaccount/token", "utf8"); return jwt; } } From 332b65071e488e8ce255458ed8d099301c09f3bc Mon Sep 17 00:00:00 2001 From: Luca Berneking Date: Wed, 25 Sep 2024 11:37:43 +0200 Subject: [PATCH 2/5] fix vault image --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7eb63d7..5976b78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: container: node:12 services: vault: - image: vault + image: vault:1.17 env: VAULT_DEV_ROOT_TOKEN_ID: "test" steps: From 3af3d66669177b81aeb912e72d3853643a8bf264 Mon Sep 17 00:00:00 2001 From: Luca Berneking Date: Wed, 25 Sep 2024 11:39:53 +0200 Subject: [PATCH 3/5] fix vault image --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5976b78..1f3c550 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: container: node:12 services: vault: - image: vault:1.17 + image: hashicorp/vault env: VAULT_DEV_ROOT_TOKEN_ID: "test" steps: From 301cb72e83f5d69f30acf48275c2674e259f1cb4 Mon Sep 17 00:00:00 2001 From: Luca Berneking Date: Wed, 25 Sep 2024 11:49:08 +0200 Subject: [PATCH 4/5] try to fix pipeline --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f3c550..684fd17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: env: VAULT_DEV_ROOT_TOKEN_ID: "test" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@2.5.0 # Setup .npmrc file to publish to npm - uses: actions/setup-node@v1 with: From 0276463cac462e38866b090b6f0dadc3d5ae0033 Mon Sep 17 00:00:00 2001 From: Luca Berneking Date: Wed, 25 Sep 2024 11:49:47 +0200 Subject: [PATCH 5/5] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 684fd17..741a4c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: env: VAULT_DEV_ROOT_TOKEN_ID: "test" steps: - - uses: actions/checkout@2.5.0 + - uses: actions/checkout@v2.5.0 # Setup .npmrc file to publish to npm - uses: actions/setup-node@v1 with: