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
Hello, same issue here.
Back to 1.2 works ok.
Best
@mickaelmagniez @javimudi Thanks for your report, we will start the investigation shortly.
Most helpful comment
@mickaelmagniez @javimudi Thanks for your report, we will start the investigation shortly.