Urgent.News

What's breaking now, across thousands of outlets.

AI

Secure AI-Driven Database Access with db-mcp-gateway

Secure AI-Driven Database Access with db-mcp-gateway Introduction AI agents often need to query production databases, but exposing connection strings creates a serious security risk. db-mcp-gateway solves this problem by acting as a trusted intermediary that never reveals credentials to the agent. The gateway is self-hosted, runs in a single Docker container, and supports PostgreSQL and MongoDB…

Introducing db-mcp-gateway: Secure AI Database Access

AI agents frequently require querying production databases, yet sharing connection strings poses significant security risks. db-mcp-gateway addresses this concern by functioning as a secure, intermediary layer that never exposes actual credentials to the AI agents.

Self-Hosted Docker Container

This gateway is a self-hosted solution, operating within a single Docker container. It supports PostgreSQL and MongoDB as back-end databases. All database passwords are securely stored within the gateway itself. When an AI agent utilizes the MCP protocol to request data, the gateway authenticates the query, executes the operation, and returns solely the resulting data set.

Notably, no log entries or error messages ever contain connection strings, effectively preventing credential leakage from various sources such as laptops, continuous integration pipelines, or the agents themselves.

Streamlined Single Sign-On Authentication

The gateway seamlessly integrates with popular Single Sign-On (SSO) providers including Okta, Google Workspace, Entra, Authentik, and Keycloak. Authentication is facilitated through a straightforward browser-based flow, eliminating the need for embedded browsers. Permissions are granted on a per-group basis, and the gateway verifies user permissions in real-time for each query.

Comprehensive YAML Configuration

Permissions are defined through a YAML file, which is maintained in version control. This facilitates audit-ready reviews and integration with GitOps workflows. The configuration resides inside the gateway, allowing for transparent tracking of changes through Git.

Audit Trail and Compliance

Every executed query generates a detailed log entry, capturing the SSO user, the group they belong to, the granted permissions, timestamp, and the actual SQL command utilized. These audit logs are stored in a dedicated PostgreSQL table within the gateway, creating an immutable historical record. This feature facilitates compliance with various frameworks such as SOC 2, HIPAA, and ISO 27001, as the logs can be exported for reporting purposes.

Config-as-Code for Permissions Management

Permissions within the gateway are defined as code, enabling rigorous review processes through pull requests. Configuration changes are seamlessly integrated via Git, ensuring that the gateway's permissions are managed in the same repository as the gateway's configuration files. This approach minimizes human error and maintains a clear audit trail for all modifications.

Simple Deployment Procedure

Deploying the gateway is straightforward and requires just a few commands:

```

# Pull the latest image

Docker pull ghcr.io/developerz-ai/db-mcp-gateway:1.1.1

# Run the gateway with your configuration

Docker run -p 8080:8080 -v $( pwd ) /config.yaml:/app/config.yaml ghcr.io/developerz-ai/db-mcp-gateway:1.1.1

```

Upon execution, the gateway exposes a single HTTP endpoint that adheres to the MCP protocol. All state and audit logs are stored persistently within a PostgreSQL database managed by the gateway.

Conclusion

db-mcp-gateway offers a security-centric solution for enabling AI agents to access production databases. By keeping sensitive credentials within the gateway, enforcing robust SSO authentication, and meticulously logging each query, it caters to the specific needs of platform and site reliability engineers, backend developers, and security professionals.

Experience the enhanced security and efficiency of db-mcp-gateway and safeguard your data while maintaining AI productivity. For more information, visit the project's GitHub repository.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

When AI Should—and Shouldn’t—Handle Hiring

AI Impact this week looks at AI in hiring, faster code review and why stronger models still need human judgment.

  • AI can streamline hiring by providing updates, scheduling, and connecting interview feedback.
  • Recruiters should inform candidates about AI's role and weight in the hiring process.

WARN Act and Automation: Do AI and Robot Replacements Require a 60-Day Notice?

WARN Act and Automation: Do AI and Robot Replacements Require a 60-Day Notice? A warehouse replaces 120 pickers with robots. A call center replaces 80 agents with an AI voice system.

  • WARN Act requires 60-day notice for layoffs, regardless of automation or restructuring.
  • Employers must inform workers, unions, state units, and local officials about job losses.
  • Several states mandate longer notice periods, up to 90 days.

ChatGPT Can Now Make Animated GIFs: Inside OpenAI's Images 2.6 Update

Originally published at ConvertElementor . ChatGPT can now make animated GIFs. OpenAI's Images 2.6 update, reported by The Verge on November 5, 2026, turns the image generator from a still-image tool…

  • ChatGPT can create animated GIFs from text prompts.
  • This feature is part of Images 2.6 update, announced November 5, 2026.
  • GIF generation enhances AI image tools' capabilities.

How to evaluate an AI router's 'none of these' branch

An AI router has to recognize requests outside its supported categories while still accepting useful work. Those are two different things to measure.

  • Mammoth-1 achieved 80% out-of-scope recall
  • False-rejection rate was 100 out of 810 in-scope requests
  • In-scope routing accuracy was 83.7%

More from Friday 6 November →