Mosae Secure
You set up mosae secure by linking your team identity tool to target resource roles. You then map user groups to strict read and write rules for each data source. Many teams start by giving broad admin roles to speed up daily work. This habit creates big risks when an engineer runs a bad command in production. Overly broad roles also expose user emails and card numbers in query results. How mosae secure works with native roles A standard mosae secure setup relies on native accounts and group
VNC Secure Access: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
You set up mosae secure by linking your team identity tool to target resource roles. You then map user groups to strict read and write rules for each data source. Many teams start by giving broad admin roles to speed up daily work. This habit creates big risks when an engineer runs a bad command in production. Overly broad roles also expose user emails and card numbers in query results.
How mosae secure works with native roles
A standard mosae secure setup relies on native accounts and group rules. Admins first create roles inside the database or cloud host. Each role holds a list of allowed actions, like reading tables or running scripts. Next, the admin links those local roles to a central user directory.
When an engineer wants to work, they log in with their main work account. The system checks their group name and picks the matching local role. If the check passes, the user gets a session on the host or database. They can now run tools, read rows, or update settings based on that role.
Teams often split these roles into read tiers and write tiers. Support staff get read tiers so they can check logs and fix basic bugs. Senior staff get write tiers so they can change schemas and restart apps. Admins review these group lists each month to drop old accounts and keep things tidy.
What native roles solve and what they miss
Native role setups are great at keeping strangers out of your core systems. They give you one place to turn off an account when someone leaves the team. They also stop junior staff from dropping tables if those staff only hold read roles.
Yet this setup only checks who logs in at the start of a session. Once the session starts, the system trusts every action that fits the broad role. It does not check what individual queries or commands do in flight. A user with a read role can still pull millions of customer phone numbers at once. A user with a write role can still update the wrong rows by mistake.
Static roles also force teams to share long-lived keys for scripts and local tools. Those keys sit on laptops where bad actors can steal them. Standard host logs often miss the exact person behind a shared admin role. You know an admin ran a bad command, but you do not know which engineer did it.
VNC Secure Access: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Steps to tighten daily session control
To fix these gaps, you must move controls closer to each command and query. Start by removing standing write roles from daily user accounts. Engineers should use read roles for normal checks and ask for write rights only when needed. Another team member should approve that request before the write task runs.
Next, add field masking to rewrite sensitive data in query results before anyone sees it. Masking rules spot emails, phone numbers, card numbers, and national IDs in flight. The rule replaces those fields with safe text while keeping the rest of the row intact. Your team can still debug issues without pulling raw private data onto their laptops.
Finally, log every single statement and tie it to a real person from your user directory. Good logs show who ran a query, when it ran, and which host it hit. This record helps your security team pass audits and trace bugs in minutes.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
How do we stop shared admin keys in a mosae secure workflow?
Tie every session directly to your single sign-on tool instead of local static keys. Make users log in with their own work identity before they run any command.
Can native database roles hide customer card numbers in query output?
Most basic roles only block or allow a whole table or column. To rewrite matched card numbers or emails in results, you need dynamic data masking in flight.
How should teams handle urgent production fixes without permanent write roles?
Use an approval workflow where an engineer asks for short write rights for one task. A lead approves the request in chat, and the rights end right after the fix.
Related guides
In this post