Relax Linear Authentik sync verification

This commit is contained in:
Conrad Kramer 2026-04-18 19:32:29 -07:00
parent 6dea4e4557
commit 7421834ebc
2 changed files with 4 additions and 4 deletions

View file

@ -294,6 +294,7 @@ existing_application="$(
)" )"
if [[ -n "$existing_application" ]]; then if [[ -n "$existing_application" ]]; then
application_pk="existing"
api PATCH "/api/v3/core/applications/${application_slug}/" "$application_payload" >/dev/null api PATCH "/api/v3/core/applications/${application_slug}/" "$application_payload" >/dev/null
else else
create_application_result="$( create_application_result="$(

View file

@ -301,10 +301,9 @@ while IFS= read -r user_pk; do
sync_object "$provider_pk" "authentik.core.models.User" "$user_pk" sync_object "$provider_pk" "authentik.core.models.User" "$user_pk"
done < <(printf '%s\n' "$user_pks_json" | jq -r '.[]') done < <(printf '%s\n' "$user_pks_json" | jq -r '.[]')
status_json="$(api GET "/api/v3/providers/scim/${provider_pk}/sync/status/")" status_json="$(api GET "/api/v3/providers/scim/${provider_pk}/sync/status/" || true)"
if ! printf '%s\n' "$status_json" | jq -e '.task_count >= 0' >/dev/null 2>&1; then if ! printf '%s\n' "$status_json" | jq -e 'has("last_sync_status")' >/dev/null 2>&1; then
echo "error: could not read Linear SCIM sync status for provider ${provider_pk}" >&2 echo "warning: could not read Linear SCIM sync status for provider ${provider_pk}; keeping reconciled configuration." >&2
exit 1
fi fi
echo "Synced Authentik Linear SCIM provider ${provider_name} (${provider_pk}) with groups ${owner_group}, ${admin_group}, ${guest_group}." echo "Synced Authentik Linear SCIM provider ${provider_name} (${provider_pk}) with groups ${owner_group}, ${admin_group}, ${guest_group}."