AUTH_AUDIENCE is overriden with empty value during configure.sh when not present in openid-configuration but IS set in setup.env #2095

Open
opened 2025-11-20 07:03:43 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @AbsurdlySuspicious on GitHub (Jul 21, 2025).

Describe the problem

configure.sh sets AUTH_AUTHORITY to null even when it is present in setup.env. Setting up self-hosted netbird using configure.sh requires setting issuer in openid-configuration event though authority env var is exposed and is expected to be used

To Reproduce

Steps to reproduce the behavior:

  1. Setup self-hosted netbird
  2. Do not set issuer in your openid-configuration
  3. Set AUTHORITY in setup.env
  4. run configure.sh
  5. check that authority is null in generated docker-compose.yml

Expected behavior

NETBIRD_AUTH_AUTHORITY value is properly used

Are you using NetBird Cloud?

Self-hosted

NetBird version

0.51.1

Is any other VPN software installed?

No

Debug output

N/A

Screenshots

N/A

Additional context

N/A

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @AbsurdlySuspicious on GitHub (Jul 21, 2025). **Describe the problem** configure.sh sets AUTH_AUTHORITY to null even when it is present in setup.env. Setting up self-hosted netbird using configure.sh requires setting issuer in openid-configuration event though authority env var is exposed and is expected to be used **To Reproduce** Steps to reproduce the behavior: 1. Setup self-hosted netbird 2. Do not set issuer in your openid-configuration 3. Set AUTHORITY in setup.env 4. run configure.sh 5. check that authority is null in generated docker-compose.yml **Expected behavior** NETBIRD_AUTH_AUTHORITY value is properly used **Are you using NetBird Cloud?** Self-hosted **NetBird version** `0.51.1` **Is any other VPN software installed?** No **Debug output** N/A **Screenshots** N/A **Additional context** N/A **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the triage-neededself-hosting labels 2025-11-20 07:03:43 -05:00
Author
Owner

@nazarewk commented on GitHub (Jul 22, 2025):

Could you provide more details? I see AUTH_AUTHORITY mentioned in following relevant places:

86c4b7e6f4/infrastructure_files/getting-started-with-zitadel.sh (L706-L708)

86c4b7e6f4/infrastructure_files/configure.sh (L151-L155)

86c4b7e6f4/infrastructure_files/docker-compose.yml.tmpl (L16-L19)

Which, on the first glance, seems correct.

@nazarewk commented on GitHub (Jul 22, 2025): Could you provide more details? I see AUTH_AUTHORITY mentioned in following relevant places: https://github.com/netbirdio/netbird/blob/86c4b7e6f47df1bf754dda735b97ce80c58422dc/infrastructure_files/getting-started-with-zitadel.sh#L706-L708 https://github.com/netbirdio/netbird/blob/86c4b7e6f47df1bf754dda735b97ce80c58422dc/infrastructure_files/configure.sh#L151-L155 https://github.com/netbirdio/netbird/blob/86c4b7e6f47df1bf754dda735b97ce80c58422dc/infrastructure_files/docker-compose.yml.tmpl#L16-L19 Which, on the first glance, seems correct.
Author
Owner

@AbsurdlySuspicious commented on GitHub (Jul 22, 2025):

When NETBIRD_DASH_AUTH_AUDIENCE is set in setup.env, it is still empty in configure.sh output and generated docker-compose.yml under services.dashboard.environment:

  dashboard:
    image: netbirdio/dashboard:latest
    restart: unless-stopped
    environment:
      # ...
      # OIDC
      - AUTH_AUDIENCE=

docker-compose.yml.tmpl:

      # OIDC
      - AUTH_AUDIENCE=$NETBIRD_DASH_AUTH_AUDIENCE
@AbsurdlySuspicious commented on GitHub (Jul 22, 2025): When `NETBIRD_DASH_AUTH_AUDIENCE` is set in `setup.env`, it is still empty in `configure.sh` output and generated `docker-compose.yml` under `services.dashboard.environment`: ```yaml dashboard: image: netbirdio/dashboard:latest restart: unless-stopped environment: # ... # OIDC - AUTH_AUDIENCE= ``` `docker-compose.yml.tmpl`: ```yaml # OIDC - AUTH_AUDIENCE=$NETBIRD_DASH_AUTH_AUDIENCE ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2095