<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dorottya Nyárády</title>
    <description>The latest articles on DEV Community by Dorottya Nyárády (@dorothy2019).</description>
    <link>https://dev.to/dorothy2019</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3635200%2F20af7e70-0717-4722-8369-1f42d3955800.jpg</url>
      <title>DEV Community: Dorottya Nyárády</title>
      <link>https://dev.to/dorothy2019</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dorothy2019"/>
    <language>en</language>
    <item>
      <title>Your Database Isn’t a Teenager’s Bedroom: Why Privileges Actually Matter</title>
      <dc:creator>Dorottya Nyárády</dc:creator>
      <pubDate>Sat, 29 Nov 2025 21:25:21 +0000</pubDate>
      <link>https://dev.to/dorothy2019/your-database-isnt-a-teenagers-bedroom-why-privileges-actually-matter-4apo</link>
      <guid>https://dev.to/dorothy2019/your-database-isnt-a-teenagers-bedroom-why-privileges-actually-matter-4apo</guid>
      <description>&lt;p&gt;Remember when you lived at your parents’ house and you thought your bedroom was your personal kingdom?&lt;/p&gt;

&lt;p&gt;You closed the door, maybe even put up a “&lt;strong&gt;Do Not Enter&lt;/strong&gt;” sign… and still, somehow, your parents always knew exactly what you were doing.&lt;br&gt;
Why?&lt;/p&gt;

&lt;p&gt;Because &lt;strong&gt;they had the key&lt;/strong&gt;.&lt;br&gt;
They could walk in anytime — to check if you cleaned the room, what snacks you were hiding, or what series you were secretly binge-watching. Privacy: &lt;strong&gt;Denied&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now here’s the twist:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is exactly what happens to your database when you don’t control privileges properly.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If a user has too many permissions, it’s basically handing them a &lt;strong&gt;master key to the whole house&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;They can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read anything&lt;/li&gt;
&lt;li&gt;Write anything&lt;/li&gt;
&lt;li&gt;Update anything&lt;/li&gt;
&lt;li&gt;Drop things&lt;/li&gt;
&lt;li&gt;Delete things&lt;/li&gt;
&lt;li&gt;Poke around in rooms they shouldn’t even know exist&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Just like your childhood bedroom, your database has “doors.”&lt;br&gt;
And just like your parents, an over-privileged user can walk through any of them.&lt;/p&gt;

&lt;p&gt;So let’s fix that.&lt;/p&gt;

&lt;p&gt;🎩 Explore: The Kozen IAM Utility (a.k.a. Your New Permission Inspector)&lt;/p&gt;

&lt;p&gt;Ah yes, the name.&lt;br&gt;
It sounds like three unrelated words glued together.&lt;/p&gt;

&lt;p&gt;But behind that name is a surprisingly powerful idea — and a very practical tool.&lt;/p&gt;

&lt;p&gt;🧠 What does it do?&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;a href="https://github.com/mongodb-industry-solutions/mdb-iam-util-demo" rel="noopener noreferrer"&gt;Kozen IAM Utility&lt;/a&gt;&lt;/strong&gt; checks whether the permissions your database users actually have match the ones they should have.&lt;/p&gt;

&lt;p&gt;In plain English:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It tells you if you gave someone too many permissions, not enough permissions, or just the right amount.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You provide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MongoDB connection string&lt;/li&gt;
&lt;li&gt;List of expected privileges&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the tool shows you:&lt;br&gt;
✔️ Valid permissions&lt;br&gt;
❌ Missing permissions&lt;br&gt;
⚠️ Extra permissions (the dangerous ones)&lt;/p&gt;

&lt;p&gt;This is incredibly important in real-world systems, where privilege mistakes often go unnoticed until something breaks — or someone deletes something they shouldn’t.&lt;/p&gt;

&lt;p&gt;Because if you’ve ever worked with databases in the real world, you already know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Some users accidentally get way too many permissions&lt;/li&gt;
&lt;li&gt;Some roles miss crucial permissions&lt;/li&gt;
&lt;li&gt;And some apps run in production with privilege mismatches no one discovers until a build breaks (or worse)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Kozen IAM Utility solves this by acting like a privilege inspector.&lt;/p&gt;

&lt;p&gt;Now let’s get our hands dirty.&lt;/p&gt;

&lt;p&gt;🚀 Let’s Try Out the Demo Together (Setup Included)&lt;/p&gt;

&lt;p&gt;If you want to experience the permission-checking magic yourself, here’s your guided tour.&lt;br&gt;
All you need is a terminal and a MongoDB connection string.&lt;/p&gt;

&lt;p&gt;1.Clone the repository&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/mongodb-industry-solutions/mdb-iam-util-demo.git
cd mdb-iam-util-demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Start everything with Docker (recommended)&lt;/p&gt;

&lt;p&gt;This is the easiest way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker compose up --build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This spins up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The backend on &lt;a href="http://localhost:3001" rel="noopener noreferrer"&gt;http://localhost:3001&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The frontend on &lt;a href="http://localhost:5173" rel="noopener noreferrer"&gt;http://localhost:5173&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Magic.&lt;/p&gt;

&lt;p&gt;3.Or run the backend manually&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd backend-node
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.Run the frontend&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd ../frontend
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;5.Open the UI&lt;/p&gt;

&lt;p&gt;Go to: &lt;a href="http://localhost:5173" rel="noopener noreferrer"&gt;http://localhost:5173&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You’ll see a clean interface where you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Paste your MongoDB connection string&lt;/li&gt;
&lt;li&gt;List the permissions your app should have&lt;/li&gt;
&lt;li&gt;Then click the button.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flphhui9c152wg5jxtclb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flphhui9c152wg5jxtclb.png" alt="Kozen IAM Utility Demo" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instantly, you’ll get:&lt;br&gt;
✔️ Permissions that match&lt;br&gt;
❌ Permissions your user is missing&lt;br&gt;
⚠️ Permissions they have but shouldn’t&lt;/p&gt;

&lt;p&gt;It’s genuinely satisfying — like running a diagnostic tool and watching it reveal the truth.&lt;/p&gt;

&lt;p&gt;🧠 Why This Tool Matters&lt;/p&gt;

&lt;p&gt;You don’t need a security breach to appreciate good privilege control.&lt;br&gt;
Some of the most common real-world problems come from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Apps using admin users in production&lt;/li&gt;
&lt;li&gt;Forgotten roles with excessive privileges&lt;/li&gt;
&lt;li&gt;Services sharing users when they shouldn’t&lt;/li&gt;
&lt;li&gt;Teams unaware of what permissions an app really requires&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And just like those parents with the spare key…&lt;/p&gt;

&lt;p&gt;If you don’t control who can access what, someone will walk in eventually.&lt;br&gt;
This utility gives you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transparency&lt;/li&gt;
&lt;li&gt;Control&lt;/li&gt;
&lt;li&gt;Peace of mind&lt;/li&gt;
&lt;li&gt;Security best practices without the pain&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can even integrate it into CI/CD pipelines to ensure no deployment goes forward with incorrect privileges.&lt;/p&gt;

&lt;p&gt;🔗 Want to Try It Yourself?&lt;/p&gt;

&lt;p&gt;Here’s the full repo with the demo:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/mongodb-industry-solutions/mdb-iam-util-demo" rel="noopener noreferrer"&gt;https://github.com/mongodb-industry-solutions/mdb-iam-util-demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go ahead — check who actually has the keys to your database.&lt;/p&gt;

</description>
      <category>security</category>
      <category>database</category>
      <category>tutorial</category>
      <category>kozen</category>
    </item>
  </channel>
</rss>
