Kong Manager login error: `config.client_secret` length must be at least 1

Uses: Kong Gateway
TL;DR

Why does Kong Manager login fail with: config.client_secret: length must be at least 1?

client_secret is empty or missing. Add the correct value and restart Kong Gateway.

Problem

When trying to log into Kong Manager, you receive the following error:

[error] 2142#0: *3867 [lua] kong.lua:429: fn(): kong[auth][postgres] schema violation (config.client_secret: {"length must be at least 1"}), client: 123.123.123.1, server: kong_admin, request: "GET /auth?Kong-Admin-User=sample@email.com HTTP/1.1", host:"localhost:8001", referrer: "http://localhost:8002/"

Cause

This error occurs when the value inside client_secret is empty. If the variable was wiped out or does not contain any data, you will receive the error:

schema violation (config.client_secret: {"length must be at least 1"})

Solution

To resolve this, add the correct value to client_secret and restart Kong Gateway. On the next login, you can proceed without issue.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!