Skip to content

Commit

Permalink
fix gen
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbox committed Oct 10, 2024
1 parent bd525c5 commit 42e5141
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@ kubectl exec "$(kubectl get pod -l app=curl -n foo -o jsonpath={.items..metadata
}

! IFS=$'\n' read -r -d '' snip_auto_mutual_tls_1_out <<\ENDSNIP
"By=spiffe://cluster.local/ns/foo/sa/httpbin;Hash=<redacted>;Subject=\"\";URI=spiffe://cluster.local/ns/foo/sa/sleep"
kubectl exec "$(kubectl get pod -l app=curl -n foo -o jsonpath={.items..metadata.name})" -c curl -n foo -- curl -s http://httpbin.foo:8000/headers -s | grep X-Forwarded-Client-Cert | sed 's/Hash=[a-z0-9]*;/Hash=<redacted>;/'
}
! IFS=$'\n' read -r -d '' snip_auto_mutual_tls_1_out <<\ENDSNIP
"X-Forwarded-Client-Cert": "By=spiffe://cluster.local/ns/foo/sa/httpbin;Hash=<redacted>;Subject=\"\";URI=spiffe://cluster.local/ns/foo/sa/curl"
"By=spiffe://cluster.local/ns/foo/sa/httpbin;Hash=<redacted>;Subject=\"\";URI=spiffe://cluster.local/ns/foo/sa/curl"
ENDSNIP

snip_auto_mutual_tls_2() {
Expand Down

0 comments on commit 42e5141

Please sign in to comment.