goauthentik / goauthentik/authentik

Authentik Embedded Proxy Outpost error when connecting to PostgreSQL via PGBouncer

Open
#18,240 3 comments 0 reactions 1 assignee Claimed by @rissson View on GitHub
bug bug/confirmed
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 2h
Merged PRs (30d)
659

Description

### Describe the bug

Error in logs:

> {"error":"failed to setup database: failed to connect to PostgreSQL: failed to connect to `user=authentik database=authentik`: ip:port (dns name): server error: FATAL: unsupported startup parameter: search_path (SQLSTATE 08P01)","event":"failed to setup application","level":"warning","logger":"authentik.outpost.proxyv2","timestamp":"2025-11-18T17:34:45Z"}

Error when trying to open the application through a proxy provider:

Image

In my case, I am using cloud database and I can't set `IGNORE_STARTUP_PARAMETERS: search_path` in PGBouncer config.

### How to reproduce

1. Install Authentik with connection to PostgreSQL through PGBouncer
2. Create Application with Proxy Provider
3. Configure Outpost (add the created Application and set log_level: trace)
4. Open application

### Expected behavior

Application without error

### Screenshots

_No response_

### Additional context

_No response_

### Deployment Method

Docker

### Version

2025.10.1

### Relevant log output

```shell
{"error":"failed to setup database: failed to connect to PostgreSQL: failed to connect to `user=authentik database=authentik`: ip:port (dns name): server error: FATAL: unsupported startup parameter: search_path (SQLSTATE 08P01)","event":"failed to setup application","level":"warning","logger":"authentik.outpost.proxyv2","timestamp":"2025-11-18T17:34:45Z"}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.