Kong: Error with jwt_secrets.key in kong 1.3

Created on 22 Aug 2019  路  2Comments  路  Source: Kong/kong

Summary

I'm trying to update from 1.2 to 1.3 (db less), and this configuration prevent kong 1.3 to start:

_format_version: "1.1"

consumers:
  - username: foo

jwt_secrets:
  - consumer: foo
    key: "https://keycloak/auth/realms/foo"
    algorithm: RS256
    rsa_public_key: "-----BEGIN PUBLIC KEY----------END PUBLIC KEY-----"

Error is

nginx: [error] init_by_lua error: ...are/lua/5.1/kong/db/schema/others/declarative_config.lua:423: attempt to index local 'parent_fk' (a nil value)
stack traceback:
        ...are/lua/5.1/kong/db/schema/others/declarative_config.lua:423: in function 'get_key_for_uuid_gen'
        ...are/lua/5.1/kong/db/schema/others/declarative_config.lua:457: in function 'generate_ids'
        ...are/lua/5.1/kong/db/schema/others/declarative_config.lua:480: in function 'flatten'
        /usr/local/share/lua/5.1/kong/db/declarative/init.lua:153: in function 'parse_file'
        /usr/local/share/lua/5.1/kong/init.lua:252: in function 'parse_declarative_config'
        /usr/local/share/lua/5.1/kong/init.lua:430: in function 'init'
        init_by_lua:3: in main chunk

Removing key: "https://keycloak/auth/realms/foo" fixes error, but of course jwt validation doesn't work.

Best regards

tasbug

Most helpful comment

@mickaelmagniez @javimudi Thanks for your report, we will start the investigation shortly.

All 2 comments

Hello, same issue here.

Back to 1.2 works ok.

Best

@mickaelmagniez @javimudi Thanks for your report, we will start the investigation shortly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

plukevdh picture plukevdh  路  52Comments

subnetmarco picture subnetmarco  路  97Comments

throrin19 picture throrin19  路  39Comments

jeremyxu2010 picture jeremyxu2010  路  39Comments

timusketeers picture timusketeers  路  36Comments