Skip to content

Commit

Permalink
Merge pull request #190 from mmalina/kinit-verbose
Browse files Browse the repository at this point in the history
fix: enable more logging for kinit
  • Loading branch information
mmalina authored Oct 1, 2024
2 parents 69cd72c + 6f5fe1c commit 3008857
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal-services/catalog/check-embargoed-cves-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Task
metadata:
name: check-embargoed-cves-task
labels:
app.kubernetes.io/version: "0.1"
app.kubernetes.io/version: "0.1.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand Down Expand Up @@ -69,6 +69,7 @@ spec:
# workaround kinit: Invalid UID in persistent keyring name while getting default ccache
export KRB5CCNAME=`mktemp`
export KRB5_CONFIG=`mktemp`
export KRB5_TRACE=/dev/stderr
sed '/\[libdefaults\]/a\ dns_canonicalize_hostname = false' /etc/krb5.conf > "${KRB5_CONFIG}"
kinit ${SERVICE_ACCOUNT_NAME} -k -t /tmp/keytab
Expand Down
3 changes: 2 additions & 1 deletion internal-services/catalog/create-advisory-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Task
metadata:
name: create-advisory-task
labels:
app.kubernetes.io/version: "0.9"
app.kubernetes.io/version: "0.9.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand Down Expand Up @@ -133,6 +133,7 @@ spec:
export KRB5CCNAME=`mktemp`
# see https://stackoverflow.com/a/12308187
export KRB5_CONFIG=`mktemp`
export KRB5_TRACE=/dev/stderr
sed '/\[libdefaults\]/a\ dns_canonicalize_hostname = false' /etc/krb5.conf > "${KRB5_CONFIG}"
kinit ${SERVICE_ACCOUNT_NAME} -k -t /tmp/keytab
ID=$(curl --retry 3 --negotiate -u : ${ERRATA_API}/advisory/reserve_live_id -XPOST | jq -r '.live_id')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Task
metadata:
name: t-add-fbc-fragment-to-index-image
labels:
app.kubernetes.io/version: "0.3.0"
app.kubernetes.io/version: "0.3.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand Down Expand Up @@ -112,6 +112,7 @@ spec:
KRB5_TEMP_CONF=$(mktemp)
echo "${KRB5_CONF_CONTENT}" > "${KRB5_TEMP_CONF}"
export KRB5_CONFIG="${KRB5_TEMP_CONF}"
export KRB5_TRACE=/dev/stderr
/usr/bin/kinit -V $(cat /mnt/service-account-secret/principal) -k -t /tmp/keytab
Expand Down

0 comments on commit 3008857

Please sign in to comment.