<html><head><title></title></head><body><!-- rte-version 0.2 9947551637294008b77bce25eb683dac --><div class="rte-style-maintainer rte-pre-wrap" data-color="global-default" bbg-color="default" data-bb-font-size="medium"bbg-font-size="medium" style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);">It makes sense to make it private.   Redhat subscription manager frequent updated the entitlement cert. We don't know if the client_key in pulp is valid until we get the 403 error. We'd like update the key automatically. Is there an alternative way to compare the client key so we always have a valid key?<br><br><div class="rte-style-maintainer" data-color="global-default"bbg-color="default" data-bb-font-size="medium" bbg-font-size="medium" style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);"><div><div class="bbg-rte-fold-content" data-header="From: daviddavis@redhat.com At: 09/09/21 12:56:46 UTC-4:00"data-digest="From: daviddavis@redhat.com At: 09/09/21 12:56:46 UTC-4:00" style=""><div class="bbg-rte-fold-summary">From: daviddavis@redhat.com At: 09/09/21 12:56:46 UTC-4:00</div>To: <a spellcheck="false" bbg-destination="mailto:bli111@bloomberg.net" href="mailto:bli111@bloomberg.net"> Bin Li (BLOOMBERG/ 120 PARK ) </a><br>Cc: <a spellcheck="false"bbg-destination="mailto:pulp-list@redhat.com" href="mailto:pulp-list@redhat.com"> pulp-list@redhat.com</a><br>Subject: Re: [Pulp-list] pulp-rpm-client 3.15.0</div><br></div><div class="rte-internet-block-wrapper" style="background: white; color: black; font-family: Arial, "BB.Proportional"; font-size: small; white-space: normal;"><div class="rte-internet-block"><blockquote><div dir="ltr">The remote fields client_key, username, and password became no longer readable in pulp 3.11. You can still set/update them but we considered exposing them in the API as a security vulnerability.<div><br></div><div><a spellcheck="false" bbg-destination="rte:bind" class=""href="https://docs.pulpproject.org/pulpcore/changes.html#id330"data-destination="rte:bind">https://docs.pulpproject.org/pulpcore/changes.html#id330</a><br></div><div><a spellcheck="false" bbg-destination="rte:bind" class=""href="https://pulp.plan.io/issues/8202" data-destination="rte:bind">https://pulp.plan.io/issues/8202</a></div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>David</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 9, 2021 at 12:42 PM Bin Li (BLOOMBERG/ 120 PARK) <<a spellcheck="false"bbg-destination="mailto:rte:bind" class="" href="mailto:bli111@bloomberg.net" data-destination="mailto:rte:bind">bli111@bloomberg.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; white-space: pre-wrap;"><div>We are using pulpcore.client.pulp_rpm to query pulp remote objects to compare the client_key to make sure we always have valid entitlement in pulp. We current running 3.7.3</div><div><br></div><div>After we upgraded to 3.15.2 and installed <span style="font-weight:bold">pulp-rpm-client 3.15.0</span>. We got the following error </div><div>AttributeError: 'RpmRpmRemoteResponse' object has no attribute 'client_key'.</div><div><br></div><div>Should the  'RpmRpmRemoteResponse' has client_key attribute as previous releases?</div><div><br></div><div><br></div><div>class RpmRpmRemoteResponse(builtins.object)</div><div> |  RpmRpmRemoteResponse(pulp_href=None, pulp_created=None, name=None, url=None, ca_cert=None, client_cert=None, tls_validation=None, proxy_url=None, pulp_labels=None, pulp_last_updated=None, download_concurrency=None, max_retries=None, policy=None, total_timeout=None, connect_timeout=None, sock_connect_timeout=None, sock_read_timeout=None, headers=None, rate_limit=None, sles_auth_token=None, local_vars_configuration=None)</div><div><br></div><div><br></div><div>class RpmRpmRemote(builtins.object)</div><div>  |  RpmRpmRemote(name=None, url=None, ca_cert=None, client_cert=None, client_key=None, tls_validation=None, proxy_url=None, proxy_username=None, proxy_password=None, username=None, password=None, pulp_labels=None, download_concurrency=None, max_retries=None, policy=None, total_timeout=None, connect_timeout=None, sock_connect_timeout=None, sock_read_timeout=None, headers=None, rate_limit=None, sles_auth_token=None, local_vars_configuration=None)</div><div><br></div><div><br></div><div><br></div></div>_______________________________________________<br>Pulp-list mailing list<br><a spellcheck="false"bbg-destination="mailto:rte:bind" class="" href="mailto:Pulp-list@redhat.com" data-destination="mailto:rte:bind">Pulp-list@redhat.com</a><br><a spellcheck="false"bbg-destination="rte:bind" class="" href="https://listman.redhat.com/mailman/listinfo/pulp-list"data-destination="rte:bind">https://listman.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div></blockquote><br></div></div></div></div></body></html>