Harbor Login Test Is Failing (workload cluster)
Issue found on two test pipelines:
https://gitlab.com/sylva-projects/sylva-core/-/jobs/15492627358
https://gitlab.com/sylva-projects/sylva-core/-/jobs/15492626758
It actually returns a 200 instead a 403 (the expected response) which is strange:
Extracted from tools/login-test/login-workload/harbor-wkld.hurl
HTTP 403
[Captures]
csrf_token: header "x-harbor-csrf-token"
# Step 2: POST with the captured CSRF token but with invalid credentials (will return 401, which is normal)
POST https://{{rancher_url}}/k8s/clusters/{{workload_cluster_id}}/api/v1/namespaces/harbor/services/http:harbor-core:80/proxy/c/login
Authorization: Bearer {{token_rancher}}
Content-Type: application/x-www-form-urlencoded
X-Harbor-CSRF-Token: {{csrf_token}}
[FormParams]
principal: admin
password: Harbor12345Called from .gitlab/ci/tests/login/login-test.yml
# if Harbor is not enabled, skip the Harbor test
[[ -z "$HURL_VARIABLE_harbor_url" ]] && hurl_files=${hurl_files//"./tools/login-test/login-workload/harbor-wkld.hurl"/}cc @tmmorin