<?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: fixing locked knowledge object local/default conflict in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-fix-locked-knowledge-object-local-default-conflict/m-p/639067#M2148</link>
    <description>&lt;P&gt;Bumping this post - with the newer ACS app management libraries, pushing apps from an orchestration utility like Ansible to SplCloud is becoming more accessible and pervasive - these apps must be pushed with /default/ consolidated configurations, so this conflict of permissions + the user's local version precedence behavior is a concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229022"&gt;@ianpearl&lt;/a&gt;&amp;nbsp;As a workaround to your problem, I would try running a API call for the affected /local/ savedsearch object path to either update the sharing ("separating" the local and default versions again) or to delete the object for that specific path.&lt;/P&gt;&lt;P&gt;Try looking at the output of:&lt;BR /&gt;`| rest /servicesNS/-/-/configs/conf-savedsearches splunk_server=local | search title="&amp;lt;search title&amp;gt;" | table title, id, eai:acl.removable, eai:acl.owner`&lt;/P&gt;&lt;P&gt;to see whether there are multiple results returned - indicating two distinct "id" references.&lt;/P&gt;&lt;P&gt;Splunk is supposed to be designed in a way that won't allow duplicate id values for a given object - it's why I can create a duplicated object name that's private, but I can't share it globally if there's another one already shared globally (confirmed behavior on a field alias object in v9.0.4)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Theoretically, there should be a unique ID route to the "local" version of that object, likely something like:&lt;/P&gt;&lt;P&gt;&lt;A href="https://.." target="_blank" rel="noopener"&gt;https://..&lt;/A&gt;./servicesNS/appname/USER/saved/searches/&amp;lt;search name&amp;gt;&lt;/P&gt;&lt;P&gt;which you could make an API call to for removal without touching the /default/ version.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 18:40:33 GMT</pubDate>
    <dc:creator>TheWoodRanger</dc:creator>
    <dc:date>2023-04-06T18:40:33Z</dc:date>
    <item>
      <title>How to fix locked knowledge object local/default conflict?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-fix-locked-knowledge-object-local-default-conflict/m-p/567134#M1085</link>
      <description>&lt;P&gt;I have knowledge objects in my custom apps which are created &amp;amp; managed in /default by manually uploading to splunkcloud and installing. this causes me a couple of problems :&lt;/P&gt;
&lt;P&gt;1. even though they have write perms in default.meta for sc_admin only, users with other roles can change the knowledge objects through the ui - for example they can disable a savedsearch. presumably this creates a new copy in /local which means that my perms from default.meta no longer apply because new perms are written in local.meta. am i correct in my assessment, and if so what is the point of write perms?&lt;/P&gt;
&lt;P&gt;2. once the user has created a /local copy of the savedsearch by changing or disabling it, there is a lock or conflict situation.... the ui /local version always gets precedence, and because there is also a version in /default i can no longer see a delete option for the ui version. so i am stuck with the ui version forever. in other words, the person with zero perms wins over the sc_admin.&lt;/P&gt;
&lt;P&gt;The only ways I have found to get out of this situation are (a) ask splunk cloudops to delete the files from /local, which takes 3 days, or (b) to rename all of the savedsearches in /default, upload and install the app, manually delete the versions that the user created in the ui, name the /default versions back again, and upload / install the app a 2nd time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am i missing something in terms of a better way to rectify things when this happens and why this might be the correct splunk behaviour?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 19:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-fix-locked-knowledge-object-local-default-conflict/m-p/567134#M1085</guid>
      <dc:creator>ianpearl</dc:creator>
      <dc:date>2023-04-06T19:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: fixing locked knowledge object local/default conflict</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-fix-locked-knowledge-object-local-default-conflict/m-p/639067#M2148</link>
      <description>&lt;P&gt;Bumping this post - with the newer ACS app management libraries, pushing apps from an orchestration utility like Ansible to SplCloud is becoming more accessible and pervasive - these apps must be pushed with /default/ consolidated configurations, so this conflict of permissions + the user's local version precedence behavior is a concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229022"&gt;@ianpearl&lt;/a&gt;&amp;nbsp;As a workaround to your problem, I would try running a API call for the affected /local/ savedsearch object path to either update the sharing ("separating" the local and default versions again) or to delete the object for that specific path.&lt;/P&gt;&lt;P&gt;Try looking at the output of:&lt;BR /&gt;`| rest /servicesNS/-/-/configs/conf-savedsearches splunk_server=local | search title="&amp;lt;search title&amp;gt;" | table title, id, eai:acl.removable, eai:acl.owner`&lt;/P&gt;&lt;P&gt;to see whether there are multiple results returned - indicating two distinct "id" references.&lt;/P&gt;&lt;P&gt;Splunk is supposed to be designed in a way that won't allow duplicate id values for a given object - it's why I can create a duplicated object name that's private, but I can't share it globally if there's another one already shared globally (confirmed behavior on a field alias object in v9.0.4)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Theoretically, there should be a unique ID route to the "local" version of that object, likely something like:&lt;/P&gt;&lt;P&gt;&lt;A href="https://.." target="_blank" rel="noopener"&gt;https://..&lt;/A&gt;./servicesNS/appname/USER/saved/searches/&amp;lt;search name&amp;gt;&lt;/P&gt;&lt;P&gt;which you could make an API call to for removal without touching the /default/ version.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 18:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-fix-locked-knowledge-object-local-default-conflict/m-p/639067#M2148</guid>
      <dc:creator>TheWoodRanger</dc:creator>
      <dc:date>2023-04-06T18:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix locked knowledge object local/default conflict?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-fix-locked-knowledge-object-local-default-conflict/m-p/639104#M2149</link>
      <description>&lt;P&gt;Let me comment/correct...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have knowledge objects in my custom apps which are created &amp;amp; managed in /default&lt;BR /&gt;&amp;gt; by manually uploading to splunkcloud and installing. this causes me a couple of problems :&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 1. even though they have write perms in default.meta for sc_admin only,&lt;BR /&gt;&amp;gt; users with other roles can change the knowledge objects through the ui -&lt;BR /&gt;&amp;gt; for example they can disable a savedsearch.&lt;BR /&gt;&amp;gt; presumably this creates a new copy in /local&lt;BR /&gt;&lt;BR /&gt;INCORRECT.&amp;nbsp; It does wrote to 'local' but it only creates a stanza header with the saved search name the disable setting like this:&lt;BR /&gt;&lt;BR /&gt;[SavedSearcNameHere]&lt;BR /&gt;disabled=true&lt;BR /&gt;&lt;BR /&gt;&amp;gt; which means that my perms from default.meta no longer apply&lt;BR /&gt;&amp;gt; because new perms are written in local.meta.&lt;BR /&gt;&amp;gt; am i correct in my assessment, and if so what is the point of write perms?&lt;BR /&gt;&lt;BR /&gt;INCORRECT.&amp;nbsp; The perms persist as-is, UNLESS some other deliberate action is mace to change them.&lt;/P&gt;&lt;P&gt;&amp;gt; 2. once the user has created a /local copy of the savedsearch by changing or disabling it,&lt;BR /&gt;&amp;gt; there is a lock or conflict situation.... the ui /local version always gets precedence,&lt;BR /&gt;&amp;gt; and because there is also a version in /default i can no longer see a delete option for the ui version.&lt;BR /&gt;&amp;gt; so i am stuck with the ui version forever.&lt;BR /&gt;&amp;gt; in other words, the person with zero perms wins over the sc_admin.&lt;BR /&gt;&lt;BR /&gt;COMPLETELY INCORRECT.&amp;nbsp; The problem that you are having is that the GUI does not allow anything to be deleted that is in "default".&amp;nbsp; In your case, if you have a saved search called "SavedSearchFOO" defined in "default", the GUI *will* show you a "delete" option in the "edit" menu but if you click on it, you will get an error like "&lt;SPAN&gt;This saved search failed to handle removal request due to Object id=SavedSearchFOO cannot be deleted in config=savedsearches."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; The only ways I have found to get out of this situation are&lt;BR /&gt;&amp;gt; (a) ask splunk cloudops to delete the files from /local, which takes 3 days, or&lt;BR /&gt;&amp;gt; (b) to rename all of the savedsearches in /default, upload and install the app,&lt;BR /&gt;&amp;gt; manually delete the versions that the user created in the ui,&lt;BR /&gt;&amp;gt; name the /default versions back again, and upload / install the app a 2nd time.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That works.&lt;/P&gt;&lt;P&gt;&amp;gt; Am i missing something in terms of a better way to rectify things&lt;BR /&gt;&amp;gt; when this happens and why this might be the correct splunk behaviour?&lt;BR /&gt;&lt;BR /&gt;Some KOs handle this better in that if the original is in default and somebody edits it and the edit goes into local, a "delete" will delete the details in "local" and revert back to the original in "default" but this does not work for "savedsearches.conf".&amp;nbsp; &amp;nbsp;What I would do is make permissions so that NOBODY can edit the stuff.&amp;nbsp; This will force users to CLONE it to change it and make it easier to realize that he should involve an admin to get it reviewed/approved and folded back into the original app/name/folder.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 22:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-fix-locked-knowledge-object-local-default-conflict/m-p/639104#M2149</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-06T22:05:46Z</dc:date>
    </item>
  </channel>
</rss>

