Skip to content

Error loading config key from local.ini with scaped (equal) = char #3319

@mtenrero

Description

@mtenrero

Description

Configuring values in local.ini file with a key which has the = (equal) character are not read appropriately, as the first occurrence gets read as the key / value delimiter.

I've no found a way to escape that character inside the key. It's required for some JWT tokens with kids including that character.

Steps to Reproduce

Configure it in the local.ini file directly, or using the API (if so, it will work until the instance gets restarted) with a key containing equal character:

[jwt_keys]
rsa:h213h2h1jg3hj2= = <somevalue>

Expected Behaviour

It should be parsed as rsa:h213h2h1jg3hj2= -> <somevalue> instead of rsa:h213h2h1jg3hj2 -> = <somevalue>

Your Environment

Debian and MacOS latest 3.x: couchdb-3.1.1.87a6b1a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions