Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable more logging for kinit #190

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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