<?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: AppInspect API error: &amp;quot;Do not use `default/setup.xml` in the Cloud environment&amp;quot; in Security</title>
    <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490189#M15330</link>
    <description>&lt;P&gt;Hello @gsabhay77 ,&lt;/P&gt;

&lt;P&gt;The setup.xml file &lt;STRONG&gt;should&lt;/STRONG&gt; be located in $SPLUNK_HOME/etc//default/,  else the Setup Screen will not be triggered when the user first runs the app.&lt;/P&gt;

&lt;P&gt;I haven't done it before yet, the introduction is here: &lt;A href="https://dev.splunk.com/scs/docs/apps/plan/"&gt;https://dev.splunk.com/scs/docs/apps/plan/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2020 20:32:07 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-05-02T20:32:07Z</dc:date>
    <item>
      <title>AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490186#M15327</link>
      <description>&lt;P&gt;I ran the latest Splunk's AppInspect API 2.1.0 using the Postman for the Splunk app we are developing. We have a setup.xml file located inside the default folder of the app project. &lt;/P&gt;

&lt;P&gt;After running the AppInspect recently, I got an issue "Do not use &lt;CODE&gt;default/setup.xml&lt;/CODE&gt; in the Cloud environment. Please consider use Authorization Code Flow for server-side web applications that can securely store secrets.". This error was not shown when I ran the app a week before. I guess this rule should be recently introduced in the Splunk AppInspect. &lt;/P&gt;

&lt;P&gt;Can someone please provide some info on where to place the setup.xml file for this to error to disappear and also work for Splunk Cloud as well?&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 11:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490186#M15327</guid>
      <dc:creator>gsabhay77</dc:creator>
      <dc:date>2020-05-02T11:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490187#M15328</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203388"&gt;@gsabhay77&lt;/a&gt; ay77,&lt;/P&gt;

&lt;P&gt;the appinspect 2.1.0 checks if there is a file setup.xml in the app default folder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# setup.xml
# -------------------
@splunk_appinspect.tags("cloud")
@splunk_appinspect.cert_version(min="2.1.0")
def check_setup_xml_in_default(app, reporter):
    """Check that `setup.xml` does not exist in the app default folder
    """
    if app.file_exists("default", "setup.xml"):
        reporter_output = (
            "Do not use `default/setup.xml` in the Cloud environment. "
            "Please consider use Authorization Code Flow for server-side web applications "
            "that can securely store secrets. "
        )
        reporter.fail(reporter_output)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The setup.xml file, which &lt;STRONG&gt;should&lt;/STRONG&gt; be located in $SPLUNK_HOME/etc/&amp;lt;your_app_name&amp;gt;/default/, defines the setup page that prompts users for configuration settings (i.e. credentials): &lt;A href="https://dev.splunk.com/enterprise/docs/developapps/setuppage/setupxmlsyntax/" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/developapps/setuppage/setupxmlsyntax/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Apparently Splunk will move from local credentials to secure credential mechanism, &lt;A href="https://dev.splunk.com/scs/docs/apps/plan/" target="_blank"&gt;https://dev.splunk.com/scs/docs/apps/plan/&lt;/A&gt; : &lt;EM&gt;Use Authorization Code Flow to authorize in the system for server-side web applications that can securely store secrets. Authorization Code Flow uses a confidential setup.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;where to place the setup.xml&lt;/EM&gt; : you can place it outside of default to bypass the check, but the Setup Screen will not be triggered when the user first runs the app.&lt;/P&gt;

&lt;P&gt;You can also bypass cloud checks completely by using &lt;STRONG&gt;--excluded-tags cloud&lt;/STRONG&gt;, but you asked &lt;EM&gt;also work for Splunk Cloud as well&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490187#M15328</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-09-30T05:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490188#M15329</link>
      <description>&lt;P&gt;Hi PavelP, &lt;/P&gt;

&lt;P&gt;Thanks for providing the info. I did try to place the setup.xml outside the default folder. But that seems to make the error go away but I cannot access the setup page as the "Set up" option doesn't appear for the Application. &lt;/P&gt;

&lt;P&gt;Can you please provide any documentation on how to create "Authorization Code Flow" in Splunk app for authentication?&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 18:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490188#M15329</guid>
      <dc:creator>gsabhay77</dc:creator>
      <dc:date>2020-05-02T18:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490189#M15330</link>
      <description>&lt;P&gt;Hello @gsabhay77 ,&lt;/P&gt;

&lt;P&gt;The setup.xml file &lt;STRONG&gt;should&lt;/STRONG&gt; be located in $SPLUNK_HOME/etc//default/,  else the Setup Screen will not be triggered when the user first runs the app.&lt;/P&gt;

&lt;P&gt;I haven't done it before yet, the introduction is here: &lt;A href="https://dev.splunk.com/scs/docs/apps/plan/"&gt;https://dev.splunk.com/scs/docs/apps/plan/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 20:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/490189#M15330</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-02T20:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/522310#M15331</link>
      <description>&lt;P&gt;I would recommend using a setup page instead of setup.xml to perform configuration. We released an updated manual on this topic here:&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/setuppage/" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/setuppage/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This code example might also be helpful:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/splunk/splunk-app-examples/tree/master/case_studies/weather_app_example" target="_blank"&gt;https://github.com/splunk/splunk-app-examples/tree/master/case_studies/weather_app_example&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;(perform the configuration described here first:&amp;nbsp;&lt;A href="https://github.com/splunk/splunk-app-examples" target="_blank"&gt;https://github.com/splunk/splunk-app-examples&lt;/A&gt;&amp;nbsp;)&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/522310#M15331</guid>
      <dc:creator>thellmann</dc:creator>
      <dc:date>2020-09-30T16:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/523058#M15332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203388"&gt;@gsabhay77&lt;/a&gt;&amp;nbsp; were you able to shift from setup.xml to setup_view&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/523058#M15332</guid>
      <dc:creator>ravi</dc:creator>
      <dc:date>2020-10-05T19:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/523060#M15333</link>
      <description>&lt;P&gt;Yeah. It worked for me!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/523060#M15333</guid>
      <dc:creator>gsabhay77</dc:creator>
      <dc:date>2020-10-05T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect API error: "Do not use `default/setup.xml` in the Cloud environment"</title>
      <link>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/523073#M15334</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203388"&gt;@gsabhay77&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is your App published in Splunkbase. I want to refer to something&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 21:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AppInspect-API-error-quot-Do-not-use-default-setup-xml-in-the/m-p/523073#M15334</guid>
      <dc:creator>ravi</dc:creator>
      <dc:date>2020-10-05T21:24:31Z</dc:date>
    </item>
  </channel>
</rss>

