goauthentik / goauthentik/authentik

ENV var not escaped correctly: $x being recognized as var | SMTP setup

Open
#24,950 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 2h
Merged PRs (30d)
659

Description

### Describe the bug

My SMTP password has a $C in it, which does not get escaped correctly, causing SMTP login and email sending to fail.

The same password works without issues in other apps such as Nextcloud that do correctly escape the ENV vars.

### How to reproduce

Set `AUTHENTIK_EMAIL__PASSWORD=ArDDl49@6*rf$C#1` or a similar password that contains a `$` followed by a char.

Confirmed by looking at what the container received: 14 characters, while the password here is 16 chars.

### Expected behavior

Email sending works regularly.

### Screenshots

_No response_

### Additional context

_No response_

### Deployment Method

Docker

### Version

2026.2

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by tracing how the Docker deployment passes AUTHENTIK_EMAIL__PASSWORD into the container, then add a regression test or reproduction for a password containing `$C`; done means the full password reaches the container and SMTP login and email sending work.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.