Skip to content

Conversation

@berrange
Copy link

@berrange berrange commented Dec 4, 2025

Some endpoints on the api.trustedservices.intel.com site do not require an API token. The pcs_client code, however, will always set the Ocp-Apim-Subscription-Key HTTP header, even if it is the empty string. The server will reject the empty string as invalid, rather than prcessing it as an non-authenticated request.

This leads to PCCS being unable to fetch PCK certs in an out of the box config unless the admin sets the API token, which should not be required for "LAZY" caching.

Some endpoints on the api.trustedservices.intel.com site do not
require an API token. The pcs_client code, however, will always
set the Ocp-Apim-Subscription-Key HTTP header, even if it is
the empty string. The server will reject the empty string
as invalid, rather than prcessing it as an non-authenticated
request.

This leads to PCCS being unable to fetch PCK certs in an out of
the box config unless the admin sets the API token, which should
not be required for "LAZY" caching.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant