<?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>topic Re: Ansible panos_decryption_rule - not working with ssl-inbound-inspection in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/553936#M3414</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/124057"&gt;@SimonT&lt;/a&gt;, thanks for this. Which line exactly did you edit in policies.py?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 09:56:51 GMT</pubDate>
    <dc:creator>bgre033</dc:creator>
    <dc:date>2023-08-16T09:56:51Z</dc:date>
    <item>
      <title>Ansible panos_decryption_rule - not working with ssl-inbound-inspection</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/542849#M3372</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checked the documentation but just cannot get a decryption rule created when using "decryption_type: 'ssl-inbound-inspection'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://paloaltonetworks.github.io/pan-os-ansible/modules/panos_decryption_rule_module.html" target="_blank"&gt;https://paloaltonetworks.github.io/pan-os-ansible/modules/panos_decryption_rule_module.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/pan-os-ansible/blob/develop/plugins/modules/panos_decryption_rule.py" target="_blank"&gt;https://github.com/PaloAltoNetworks/pan-os-ansible/blob/develop/plugins/modules/panos_decryption_rule.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yaml file is vanilla just the same as the example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;- name: add inbound decryption rule to Panorama device group&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;panos_decryption_rule:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;provider: '{{ provider }}'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;device_group: '{{ device_group }}'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;name: 'sampleRule'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;description: 'Made by Ansible'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;source_zones: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;source_addresses: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;source_users: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;source_hip: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;destination_zones: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;destination_addresses: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;destination_hip: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;negate_destination: false&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;services: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;url_categories: ['any']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;action: 'decrypt'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;decryption_type: 'ssl-inbound-inspection'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ssl_certificate: 'test-cert'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;log_successful_tls_handshakes: true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;log_failed_tls_handshakes: true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;audit_comment: 'Initial config'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;"msg": "Failed apply: test-decom -&amp;gt; type -&amp;gt; ssl-inbound-inspection unexpected here\n test-decom -&amp;gt; type -&amp;gt; ssl-inbound-inspection is unexpected \n test-decom -&amp;gt; type is invalid"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Panorama&amp;nbsp;php.debug.log file I see this for the attempt:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;type&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;ssl-inbound-inspection&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;test-cert&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;/ssl-inbound-inspection&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;/type&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but with "debug cli on" when I try to set the rule via the CLI I see this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;type&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;ssl-inbound-inspection&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;certificates&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;member&amp;gt;test-cert&amp;lt;/member&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;/certificates&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;/ssl-inbound-inspection&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt;/type&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Panorama is 10.2 and that part of the tool now supports multiple certificates so perhaps that's the issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;$ ansible-galaxy collection list | grep pano&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;paloaltonetworks.panos 2.16.0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 03:12:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/542849#M3372</guid>
      <dc:creator>SimonT</dc:creator>
      <dc:date>2023-05-22T03:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible panos_decryption_rule - not working with ssl-inbound-inspection</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/542851#M3373</link>
      <description>&lt;P&gt;Seems the issue is in&amp;nbsp;&lt;A href="https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/panos/policies.py" target="_blank"&gt;https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/panos/policies.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I edited my local copy with the following and it now works:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;params.append(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;VersionedParamPath(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;"ssl_certificate",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;vartype="member",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;path="type/{decryption_type}/certificates/",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;condition={"decryption_type": "ssl-inbound-inspection",},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 05:15:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/542851#M3373</guid>
      <dc:creator>SimonT</dc:creator>
      <dc:date>2023-05-22T05:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible panos_decryption_rule - not working with ssl-inbound-inspection</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/542878#M3374</link>
      <description>&lt;P&gt;Thanks for this one&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/124057"&gt;@SimonT&lt;/a&gt;. It arises because in 10.2+ there is the possibility to have multiple certs, instead of just one, hence the underlying PAN-OS API changed and the integrations need updating. This is tracked &lt;A href="https://github.com/PaloAltoNetworks/pan-os-ansible/issues/401" target="_self"&gt;here&lt;/A&gt; right now&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 08:49:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/542878#M3374</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2023-05-22T08:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible panos_decryption_rule - not working with ssl-inbound-inspection</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/553936#M3414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/124057"&gt;@SimonT&lt;/a&gt;, thanks for this. Which line exactly did you edit in policies.py?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 09:56:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/553936#M3414</guid>
      <dc:creator>bgre033</dc:creator>
      <dc:date>2023-08-16T09:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible panos_decryption_rule - not working with ssl-inbound-inspection</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/554091#M3415</link>
      <description>&lt;P&gt;this is the diff:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;lt; path="type/{decryption_type}/certificates/",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;gt; path="type/{decryption_type}",&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 06:01:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/554091#M3415</guid>
      <dc:creator>SimonT</dc:creator>
      <dc:date>2023-08-17T06:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible panos_decryption_rule - not working with ssl-inbound-inspection</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/554440#M3416</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/124057"&gt;@SimonT&lt;/a&gt;, it needs the line you specified as well as the 'vartype="member". Working as expected now.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;params.append(
  VersionedParamPath(
    "ssl_certificate",
    vartype="member",
    path="type/{decryption_type}/certificates/",
    #path="type/{decryption_type}",
    condition={"decryption_type": "ssl-inbound-inspection",},
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 03:08:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-panos-decryption-rule-not-working-with-ssl-inbound/m-p/554440#M3416</guid>
      <dc:creator>bgre033</dc:creator>
      <dc:date>2023-08-21T03:08:45Z</dc:date>
    </item>
  </channel>
</rss>

