<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: HUE SAML error after upgrade to CDP 7.1.6 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318880#M227577</link>
    <description>&lt;P&gt;I'm happy to see you resolved your issue. Please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark as solution button" style="width: 331px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5960i4EC112CCAAC11427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-06 at 1.54.47 PM.png" alt="Screen Shot 2019-08-06 at 1.54.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 13:57:55 GMT</pubDate>
    <dc:creator>cjervis</dc:creator>
    <dc:date>2021-06-17T13:57:55Z</dc:date>
    <item>
      <title>HUE SAML error after upgrade to CDP 7.1.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/317187#M227051</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After we upgraded from CDH 5.15 to CDP 7.1.6 runtime. The HUE SAML login got broken. It gives an error below. Any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ValueError at /saml2/login/&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Could not deserialize key data.&lt;/FONT&gt;&lt;BR /&gt;Request Method: GET&lt;BR /&gt;Request URL: &lt;A href="http://xxxxx.com:8889/saml2/login/?next=/" target="_blank" rel="noopener"&gt;http://xxxxx.com:8889/saml2/login/?next=/&lt;/A&gt;&lt;BR /&gt;Django Version: 1.11.29&lt;BR /&gt;Exception Type: ValueError&lt;BR /&gt;Exception Value:&lt;BR /&gt;Could not deserialize key data.&lt;BR /&gt;Exception Location: /opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/hue/build/env/lib/python2.7/site-packages/cryptography-2.9-py2.7-linux-x86_64.egg/cryptography/hazmat/backends/openssl/backend.py in _handle_key_loading_error, line 1382&lt;BR /&gt;Python Executable: /opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/hue/build/env/bin/python2.7&lt;BR /&gt;Python Version: 2.7.5&lt;BR /&gt;Python Path:&lt;BR /&gt;['/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/hue/desktop/libs/libsaml/attribute-maps',&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 May 2021 23:27:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/317187#M227051</guid>
      <dc:creator>ebeb</dc:creator>
      <dc:date>2021-05-26T23:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: HUE SAML error after upgrade to CDP 7.1.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/317256#M227077</link>
      <description>&lt;P&gt;Some more progress:&lt;BR /&gt;It appears CDP 7.1.6 we need to create the unencrypted dummy key file as below.&lt;BR /&gt;To create an unencrypted private key file from an encrypted key we have to run:&lt;BR /&gt;openssl rsa -in ssl_certificate.key -out ssl_certificate-nocrypt.key&lt;BR /&gt;The output file (ssl_certificate-nocrypt.key) is an unencrypted PEM-formatted key that is used for the parameter key_file=/opt/cloudera/security/saml/ssl_certificate-nocrypt.key&lt;BR /&gt;&lt;BR /&gt;Now this error is gone: Could not deserialize key data.&lt;BR /&gt;But we are getting different error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AttributeError at /saml2/acs/&lt;BR /&gt;'NoneType' object has no attribute 'strip'&lt;BR /&gt;Request Method: POST&lt;BR /&gt;Request URL: &lt;A href="http://xxxx.com:8889/saml2/acs/" target="_blank" rel="noopener"&gt;http://xxxx.com:8889/saml2/acs/&lt;/A&gt;&lt;BR /&gt;Django Version: 1.11.29&lt;BR /&gt;Exception Type: AttributeError&lt;BR /&gt;Exception Value:&lt;BR /&gt;'NoneType' object has no attribute 'strip'&lt;BR /&gt;Exception Location: /opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/hue/build/env/lib/python2.7/site-packages/pysaml2-4.9.0-py2.7.egg/saml2/response.py in for_me, line 212&lt;BR /&gt;Python Executable: /opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/hue/build/env/bin/python2.7&lt;BR /&gt;Python Version: 2.7.5&lt;BR /&gt;Python Path:&lt;BR /&gt;['/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/hue/desktop/libs/libsaml/attribute-maps',&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------&lt;BR /&gt;Below is the python code in line 212 which errors out:&lt;BR /&gt;&lt;BR /&gt;202 def for_me(conditions, myself):&lt;BR /&gt;203 """ Am I among the intended audiences """&lt;BR /&gt;204&lt;BR /&gt;205 if not conditions.audience_restriction: # No audience restriction&lt;BR /&gt;206 return True&lt;BR /&gt;207&lt;BR /&gt;208 for restriction in conditions.audience_restriction:&lt;BR /&gt;209 if not restriction.audience:&lt;BR /&gt;210 continue&lt;BR /&gt;211 for audience in restriction.audience:&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;212 if audience.text.strip() == myself:&lt;/FONT&gt;&lt;BR /&gt;213 return True&lt;BR /&gt;214 else:&lt;BR /&gt;215 # print("Not for me: %s != %s" % (audience.text.strip(),&lt;BR /&gt;216 # myself))&lt;BR /&gt;217 pass&lt;BR /&gt;218&lt;BR /&gt;219 return False&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 17:28:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/317256#M227077</guid>
      <dc:creator>ebeb</dc:creator>
      <dc:date>2021-05-27T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: HUE SAML error after upgrade to CDP 7.1.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/317780#M227323</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23837"&gt;@ebeb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please see the documentation on &lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.3/securing-hue/topics/hue-configure-saml-authentication-managed-cluster.html" target="_self"&gt;"Configuring SAML authentication on managed clusters"&lt;/A&gt;. Please let us know if following the steps there resolved your issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 10:15:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/317780#M227323</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2021-06-07T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: HUE SAML error after upgrade to CDP 7.1.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318874#M227572</link>
      <description>&lt;P&gt;Hi Ferenc,&lt;/P&gt;&lt;P&gt;We are seeing a similiar issue occur in our latest deployment to AWS EMR 5.33 clusters.&lt;/P&gt;&lt;P&gt;Previously we had no issue with HUE same on EMR5.29 clusters. However when we attempt to use cloudera 4.9 which comes packages with this version of EMR, we are seeing similiar exceptions once we enable HUE SAML.&lt;/P&gt;&lt;P&gt;Please see the defect i logged for more details -&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cloudera/hue/issues/2137" target="_blank"&gt;https://github.com/cloudera/hue/issues/2137&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to resolve. These exceptions are all appearing in the HUE virtual environment but this looks very similiar to the original exception reported here,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate any direction or help you can give as this is a blocker for us continuing with HUE at the moment,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Darren&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:20:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318874#M227572</guid>
      <dc:creator>darrenrabbs</dc:creator>
      <dc:date>2021-06-17T12:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: HUE SAML error after upgrade to CDP 7.1.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318879#M227576</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Darren,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This got resolved with the help of Cloudera Support engineer. There were couple of issues. First the IDP and SP entity_id should be different values. Next there is a SAML property that needs to be set by the IDP which is&amp;nbsp;&amp;lt;saml:AudienceRestriction&amp;gt;&amp;lt;saml:Audience /&amp;gt;&amp;lt;/saml:AudienceRestriction&amp;gt;&amp;lt;/saml:Conditions&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After setting the Audience property to the entity_id of the SP the error went away and HUE SAML is working again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below error before setting Audience property:&amp;nbsp;&lt;/P&gt;&lt;P&gt;response&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEBUG&amp;nbsp;&amp;nbsp;&amp;nbsp; conditions: &amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;saml:Conditions xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" NotBefore="2021-06-02T16:02:45.573Z" NotOnOrAfter="2021-06-02T17:02:45.573Z"&amp;gt;&amp;lt;saml:AudienceRestriction&amp;gt;&amp;lt;saml:Audience /&amp;gt;&amp;lt;/saml:AudienceRestriction&amp;gt;&amp;lt;/saml:Conditions&amp;gt;&lt;/P&gt;&lt;P&gt;[02/Jun/2021 09:02:45 -0700] client_base&amp;nbsp; ERROR&amp;nbsp;&amp;nbsp;&amp;nbsp; XML parse error: 'NoneType' object has no attribute 'strip'&lt;/P&gt;&lt;P&gt;[02/Jun/2021 09:02:45 -0700] middleware&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Processing exception: 'NoneType' object has no attribute 'strip': Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/base.py", line 185, in _get_response&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This looks like a breaking change from CDH 5.15 HUE saml to CDP 7.1.6 as we never set the Audience value in CDH 5.x in IDP before.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 14:03:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318879#M227576</guid>
      <dc:creator>ebeb</dc:creator>
      <dc:date>2021-06-17T14:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: HUE SAML error after upgrade to CDP 7.1.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318880#M227577</link>
      <description>&lt;P&gt;I'm happy to see you resolved your issue. Please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark as solution button" style="width: 331px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5960i4EC112CCAAC11427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-06 at 1.54.47 PM.png" alt="Screen Shot 2019-08-06 at 1.54.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:57:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318880#M227577</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2021-06-17T13:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: HUE SAML error after upgrade to CDP 7.1.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318942#M227613</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. It turns out my issue is slightly different. I have been able to unblock myself by creating a new pem key and cert file using openssl.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help, please don't keep the issue open on my part,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Darren&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:31:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HUE-SAML-error-after-upgrade-to-CDP-7-1-6/m-p/318942#M227613</guid>
      <dc:creator>darrenrabbs</dc:creator>
      <dc:date>2021-06-18T16:31:03Z</dc:date>
    </item>
  </channel>
</rss>

