<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Redis on Wael Nasreddine</title><link>https://risala.pages.dev/tags/redis/</link><description>Recent content in Redis on Wael Nasreddine</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://risala.pages.dev/tags/redis/index.xml" rel="self" type="application/rss+xml"/><item><title>Redis - Add ACL Users</title><link>https://risala.pages.dev/posts/redis-add-acl-users/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/redis-add-acl-users/</guid><description>&lt;h2 id="problem"&gt;&#10; Problem&#10; &lt;a class="heading-link" href="#problem"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I want to configure a Redis database and enabled authentication as well as add users with auth that can login from anywhere on my nextwork.&lt;/p&gt;&#10;&lt;h2 id="solution"&gt;&#10; Solution&#10; &lt;a class="heading-link" href="#solution"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Login to the Redis box/container.&lt;/li&gt;&#10;&lt;li&gt;Open a Redis CLI with &lt;code&gt;redis-cli&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;Run &lt;code&gt;ACL LIST&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;If you get &lt;code&gt;(error) NOAUTH Authentication required.&lt;/code&gt; then you need to authentication first with the following command: &lt;code&gt;AUTH default &amp;lt;password&amp;gt;&lt;/code&gt; and if you got it should respond with &lt;code&gt;OK&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;Add a new user with &lt;code&gt;ACL SETUSER nextcloud +@all ~* allchannels on &amp;gt;MYPASSWORD&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;Save with &lt;code&gt;ACL SAVE&lt;/code&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="related"&gt;&#10; Related&#10; &lt;a class="heading-link" href="#related"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://risala.pages.dev/posts/redis-noperm-on-channel/" &gt;Redis - Troubleshooting NOPERM this user has no permissions to access one of the channels&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Redis - Troubleshooting NOPERM this user has no permissions to access one of the channels</title><link>https://risala.pages.dev/posts/redis-noperm-on-channel/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://risala.pages.dev/posts/redis-noperm-on-channel/</guid><description>&lt;h2 id="problem"&gt;&#10; Problem&#10; &lt;a class="heading-link" href="#problem"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I configured ArgoCD to use an external Redis server with authentication, and I'm getting the following error on the UI: &lt;code&gt;Unable to load data: error getting cached app managed resources: cache: key is missing&lt;/code&gt;. In the logs of ArgoCD I also found this log entry:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;Failed to cache app resources: error setting app resource tree: NOPERM this user has no permissions to access one of the channels used as arguments&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;h2 id="solution"&gt;&#10; Solution&#10; &lt;a class="heading-link" href="#solution"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Add &lt;code&gt;allchannels&lt;/code&gt; to the users.list&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Before&lt;/p&gt;</description></item></channel></rss>