<?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: conjur list --search returns the wrong result in Secrets Management</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328668#M577</link>
    <description>&lt;P&gt;Thanks for the quick responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use the "search" function because we're writing a script to automate the onboarding process, utilizing the Conjur List API. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conjur API List Resources&lt;/P&gt;&lt;P&gt;&lt;A alt="https://docs.cyberark.com/conjur-enterprise/latest/en/content/developer/conjur_api_list_resources.htm?tocpath=Developer%7CREST%C2%A0APIs%7C_____16" href="https://docs.cyberark.com/conjur-enterprise/latest/en/content/developer/conjur_api_list_resources.htm?tocpath=Developer%7CREST%C2%A0APIs%7C_____16" target="_blank"&gt;https://docs.cyberark.com/conjur-enterprise/latest/en/content/developer/conjur_api_list_resources.htm?tocpath=Developer%7CREST%C2%A0APIs%7C_____16&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script retrieves policy names and then loads the policies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Conjur CLI version is 8.0.1-2a14e75.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We discovered this issue with the CLI months ago and checked with Conjur OSS that time since it's open source. We found that the Conjur list-search seemed built on &lt;B&gt;Postgres textsearch index&lt;/B&gt;, which filters out all "stop words" (e.g., "I," "the," "a"), and is single-plural insensitive. Our workaround was to avoid using those stop words when naming Conjur resources. It didn't bother us too much when using the CLI, as we knew what we're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now that we want to use the search function in a script to find resource IDs, it's not easy to have a workaround. we already have many dash (-) and underscore (_) in resource names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 19:19:59 GMT</pubDate>
    <dc:creator>river</dc:creator>
    <dc:date>2025-03-25T19:19:59Z</dc:date>
    <item>
      <title>conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328666#M575</link>
      <description>&lt;P&gt;I have a safe in Cyberark vault named MYAPP_DEV. After it was synced to Conjur, a policy named Vault/myLob/MYAPP_DEV is created. I did &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;conjur list -k policy -s MYAPP&lt;B&gt;_DEV&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It showed the expected policy. However, I tried &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;conjur list -s &lt;B&gt;DEV_&lt;/B&gt;MYAPP &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also returned the same policy, which is not what I expected. I supposed it should return empty list because we have no policy as "DEV_MYAPP".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also found if we have two variables: my-secret and your-secret, whatever we --search my-secret or your-secret, Conjur returns both my-secret and your-secret.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the Conjur search goes to "full text" word search, which could cause unexpected results if we use this API. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET /resources/conjur-dev?kind=policy&amp;amp;search=MYAPP_DEV HTTP/1.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conjur Enterprise Version is V13.3.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any config can change the "search" to ID search, or other API can use for string match?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 20:29:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328666#M575</guid>
      <dc:creator>river</dc:creator>
      <dc:date>2025-03-24T20:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328667#M576</link>
      <description>&lt;P&gt;Hi @river wang​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems the cause of this issue could be due to the special character '_' or '-' inside the Safe name or variables, that's why the 'list' returns all the data/resources fetching at least part of the name (before or after '_', '-')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you elaborate on the purpose of GETting the policy name and then using it somewhere? So then we can review internally this request more deeper&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, please specify the CLI version on your end&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 09:57:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328667#M576</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-03-25T09:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328668#M577</link>
      <description>&lt;P&gt;Thanks for the quick responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use the "search" function because we're writing a script to automate the onboarding process, utilizing the Conjur List API. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conjur API List Resources&lt;/P&gt;&lt;P&gt;&lt;A alt="https://docs.cyberark.com/conjur-enterprise/latest/en/content/developer/conjur_api_list_resources.htm?tocpath=Developer%7CREST%C2%A0APIs%7C_____16" href="https://docs.cyberark.com/conjur-enterprise/latest/en/content/developer/conjur_api_list_resources.htm?tocpath=Developer%7CREST%C2%A0APIs%7C_____16" target="_blank"&gt;https://docs.cyberark.com/conjur-enterprise/latest/en/content/developer/conjur_api_list_resources.htm?tocpath=Developer%7CREST%C2%A0APIs%7C_____16&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script retrieves policy names and then loads the policies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Conjur CLI version is 8.0.1-2a14e75.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We discovered this issue with the CLI months ago and checked with Conjur OSS that time since it's open source. We found that the Conjur list-search seemed built on &lt;B&gt;Postgres textsearch index&lt;/B&gt;, which filters out all "stop words" (e.g., "I," "the," "a"), and is single-plural insensitive. Our workaround was to avoid using those stop words when naming Conjur resources. It didn't bother us too much when using the CLI, as we knew what we're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now that we want to use the search function in a script to find resource IDs, it's not easy to have a workaround. we already have many dash (-) and underscore (_) in resource names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 19:19:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328668#M577</guid>
      <dc:creator>river</dc:creator>
      <dc:date>2025-03-25T19:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328669#M578</link>
      <description>&lt;P&gt;Appreciate your clarification @river wang​&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll have a look deeper into this internally and will update you once I have any news&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 16:27:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328669#M578</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-03-26T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328670#M579</link>
      <description>&lt;P&gt;Thanks @Oleksandr Voloschuk​&amp;nbsp;  Our current solution is to have our own "client side search" and do the string comparison.  &lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 19:36:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328670#M579</guid>
      <dc:creator>river</dc:creator>
      <dc:date>2025-03-26T19:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328671#M580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As you've figured out, the list command uses a simple full-text search. You're welcome to submit an enhancement request for this feature though.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 17:46:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328671#M580</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-03-27T17:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328672#M581</link>
      <description>&lt;P&gt;I'm also having issues with the search, I expect it to work like grep but intead it returns results that don't contain the searched term in neither the id nor the annotations but substring of it.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 09:20:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328672#M581</guid>
      <dc:creator>arnauvc</dc:creator>
      <dc:date>2025-10-02T09:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328673#M582</link>
      <description>&lt;P&gt;hi @Arnau Valls Cunillera​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list endpoint is using a simple full-text search operation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned above, please submit an enhancement request for a more comprehensive and granular search&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 09:27:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328673#M582</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-10-02T09:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328674#M583</link>
      <description>&lt;P&gt;our workaround is to search the "substrings", then do a "client-side" search again. We checked the Conjur opensource. What's behind Conjur search might be PostgreSQL text search, which &lt;B&gt;cannot be used for ID search&lt;/B&gt;. sales-secret is a string in most programming languages, but it will be taken as two words/substrings, "sales" and "secret" in this full-text search. while my-secret will be taken as one word/substring, because Postgresql remove  "my" out as a "stop word". Therefore, a naming convention for conjur resources can help too. &lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 14:51:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328674#M583</guid>
      <dc:creator>river</dc:creator>
      <dc:date>2025-10-02T14:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: conjur list --search returns the wrong result</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328675#M584</link>
      <description>&lt;P&gt;It would have been nice for you (Cyberark) to open it since many people had que same issue, but here it goes:&lt;/P&gt;&lt;P&gt;&lt;A alt="https://community.cyberark.com/s/article/Improve-conjur-list-search-15de-f4e" href="https://community.cyberark.com/s/article/Improve-conjur-list-search-15de-f4e" target="_blank"&gt;ER - Improve conjur list search&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2026 10:26:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/conjur-list-search-returns-the-wrong-result/m-p/1328675#M584</guid>
      <dc:creator>arnauvc</dc:creator>
      <dc:date>2026-09-15T10:26:48Z</dc:date>
    </item>
  </channel>
</rss>

