Even if we don’t use Nginx and directly try to access the endpoint I am still facing the same issue. It seems to be present regardless of the access method, so I think its not related to Nginx configuration. Please check the below outputs I performed on Pulp server i.e. with and without certguard.
(AmzLinux is not protected with certguard with base_path : pulp-data1)
(AmazonLinux-2023-Dist is protected with certguard with base_path : pulp-data)
[root@ip-172-x-x-x ~]# pulp rpm distribution list
[
{
"pulp_href": "/pulp/api/v3/distributions/rpm/rpm/018a5f19-632c-7c95-b969-50680781a6b6/",
"pulp_created": "2023-09-04T07:30:13.933861Z",
"base_path": "pulp-data1",
"base_url": "http://localhost:24816/pulp/content/pulp-data1/",
"content_guard": null,
"hidden": false,
"pulp_labels": {},
"name": "AmzLinux",
"repository": null,
"publication": "/pulp/api/v3/publications/rpm/rpm/018a40ec-a601-7276-91e6-bbe8e16242c1/"
},
{
"pulp_href": "/pulp/api/v3/distributions/rpm/rpm/018a40f6-c296-772f-ac62-25de743cbfb8/",
"pulp_created": "2023-08-29T11:03:48.119538Z",
"base_path": "pulp-data",
"base_url": "http://localhost:24816/pulp/content/pulp-data/",
"content_guard": "/pulp/api/v3/contentguards/certguard/x509/018a4f81-bfcb-7451-bcdd-52a627b56867/",
"hidden": false,
"pulp_labels": {},
"name": "AmazonLinux-2023-Dist",
"repository": null,
"publication": "/pulp/api/v3/publications/rpm/rpm/018a40ec-a601-7276-91e6-bbe8e16242c1/"
}
]
[root@ip-172-x-x-x ~]# curl -k --cert /root/easy-rsa/easyrsa3/pki/issued/yum-client.pem --key /root/easy-rsa/easyrsa3/pki/private/yum-client.key http://localhost:24816/pulp/content/pulp-data1/repodata/
<html>
<head><title>Index of /pulp/content/pulp-data1/repodata/</title></head>
<body bgcolor="white">
<h1>Index of /pulp/content/pulp-data1/repodata/</h1>
<hr><pre><a href="../">../</a>
<a href="0a65d1a5c12377cf8d3c69fa1c964f982ce1e42e4f2b8050ed4500907206d1e4-other.xml.gz">0a65d1a5c12377cf8d3c69fa1c964f982ce1e42e4f2b8050ed4500907206d1e4-other.xml.gz</a> 29-Aug-2023 10:53 1.2 MB
<a href="551609a9e510d48daefe8b21ad54e4b74f5440fed17d9fc66b30955bbf052f65-primary.xml.gz">551609a9e510d48daefe8b21ad54e4b74f5440fed17d9fc66b30955bbf052f65-primary.xml.gz</a> 29-Aug-2023 10:53 3.3 MB
<a href="8c0374e5f54a36971138cd8fbf9a3f8d8b81ec29dc6ad92ab7bca711a3250ca1-filelists.xml.gz">8c0374e5f54a36971138cd8fbf9a3f8d8b81ec29dc6ad92ab7bca711a3250ca1-filelists.xml.gz</a> 29-Aug-2023 10:53 7.2 MB
<a href="9d34618009a58ec6cb82f8a7375da55b7c33ba034603692b10fcd49a55b11b5c-updateinfo.xml.gz">9d34618009a58ec6cb82f8a7375da55b7c33ba034603692b10fcd49a55b11b5c-updateinfo.xml.gz</a> 29-Aug-2023 10:53 122.1 kB
<a href="ab6bdd8df14cf963e9e3b434c1a65e0bdae1ce6058ab5bbc8e3975bc533c74f4-comps.xml">ab6bdd8df14cf963e9e3b434c1a65e0bdae1ce6058ab5bbc8e3975bc533c74f4-comps.xml</a> 29-Aug-2023 10:53 41.3 kB
<a href="repomd.xml">repomd.xml</a> 29-Aug-2023 10:53 2.3 kB
</pre><hr></body>
</html>
[root@ip-172-x-x-x ~]# curl -k --cert /root/easy-rsa/easyrsa3/pki/issued/yum-client.pem --key /root/easy-rsa/easyrsa3/pki/private/yum-client.key http://localhost:24816/pulp/content/pulp-data/repodata/
403: A client certificate was not received via the `X-CLIENT-CERT` header.