Skip to content

JWKS URL Parsing Fails [v24.0.5] #9272

@matt2102

Description

@matt2102

JWKS URL Parsing

Updating schema over /admin/endpoint with a dash separated subdomain fails and results in the below error.

{
    "errors": [
        {
            "message": "resolving updateGQLSchema failed because invalid character 'p' after top-level value (Locations: [{Line: 3, Column: 4}])",
            "extensions": {
                "code": "Error"
            }
        }
    ]
}

The following url would work in v23 and migrating to v24.0.5 schema validation threw an error:

# Dgraph.Authorization {"jwkurl": "https://dash-seperated-subdomain-api.example.com/.well-known/jwks"}

To Reproduce

Add a subdomain such as to the schema.graphql file and update the schema over the /admin/schema endpoint.

# Dgraph.Authorization {"jwkurl": "https://dash-seperated-subdomain-api.example.com/.well-known/jwks"}

this behavior is the same when using multiple urls as in

# Dgraph.Authorization {"jwkurls": ["https://dash-seperated-subdomain-api.example.com/.well-known/jwks"]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions