Skip to content

Commit

Permalink
Wrong key location?
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Schmitz von Hülst <[email protected]>
  • Loading branch information
moritzschmitz-oviva committed Feb 14, 2024
1 parent 04e3952 commit fe4e78f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/tests/spire-values.yaml.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
global:
spire:
trustDomain: $TRUST_DOMAIN
spire-server:
ca_subject:
common_name: $TRUSTSTORE_COMMON_NAME
controllerManager:
identities:
clusterSPIFFEIDs:
Expand All @@ -16,4 +15,4 @@ spire-server:
matchLabels:
app: java-spiffe-helper
dnsNameTemplates:
- $DNS_NAME_TEMPLATE
- $KEYSTORE_COMMON_NAME
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest

env:
DNS_NAME_TEMPLATE: dns-${{ github.sha }}
TRUST_DOMAIN: domain-${{ github.sha }}
KEYSTORE_COMMON_NAME: keystore-${{ github.sha }}
TRUSTSTORE_COMMON_NAME: truststore-${{ github.sha }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -48,9 +48,9 @@ jobs:
java-version: '17'
- run: kubectl cp java-spiffe-helper:/tmp/keystore.p12 keystore.p12
- run: kubectl cp java-spiffe-helper:/tmp/truststore.p12 truststore.p12
- run: keytool -v -list -keystore keystore.p12 -storepass password | grep "CN=${{ env.DNS_NAME_TEMPLATE }}"
- run: keytool -v -list -keystore keystore.p12 -storepass password | grep "CN=${{ env.KEYSTORE_COMMON_NAME }}"
- if: ${{ failure() }}
run: keytool -v -list -keystore keystore.p12 -storepass password
- run: keytool -v -list -keystore truststore.p12 -storepass password | grep "CN=${{ env.TRUST_DOMAIN }}"
- run: keytool -v -list -keystore truststore.p12 -storepass password | grep "CN=${{ env.TRUSTSTORE_COMMON_NAME }}"
- if: ${{ failure() }}
run: keytool -v -list -keystore truststore.p12 -storepass password

0 comments on commit fe4e78f

Please sign in to comment.