You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use kong-oidc-auth plugin in a fresh install of Kong in Docker.
I'm using the latest official Kong Docker image with Kong version 2.2.1.
The installation of the plugin is okay using luarocks install kong-oidc-auth.
But when I startup Kong, I get the following error stack:
2020/12/10 14:56:08 [error] 1#0: init_by_lua error: /usr/local/share/lua/5.1/kong/tools/utils.lua:652: error loading module 'kong.plugins.kong-oidc-auth.handler':
...cal/share/lua/5.1/kong/plugins/kong-oidc-auth/access.lua:7: module 'openssl.digest' not found:No LuaRocks module found for openssl.digest
no field package.preload['openssl.digest']
no file './openssl/digest.lua'
no file './openssl/digest/init.lua'
no file '/usr/local/openresty/site/lualib/openssl/digest.ljbc'
no file '/usr/local/openresty/site/lualib/openssl/digest/init.ljbc'
no file '/usr/local/openresty/lualib/openssl/digest.ljbc'
no file '/usr/local/openresty/lualib/openssl/digest/init.ljbc'
no file '/usr/local/openresty/site/lualib/openssl/digest.lua'
no file '/usr/local/openresty/site/lualib/openssl/digest/init.lua'
no file '/usr/local/openresty/lualib/openssl/digest.lua'
no file '/usr/local/openresty/lualib/openssl/digest/init.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/openssl/digest.lua'
no file '/usr/local/share/lua/5.1/openssl/digest.lua'
no file '/usr/local/share/lua/5.1/openssl/digest/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/openssl/digest.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/openssl/digest/init.lua'
no file '/home/kong/.luarocks/share/lua/5.1/openssl/digest.lua'
no file '/home/kong/.luarocks/share/lua/5.1/openssl/digest/init.lua'
no file '/usr/local/openresty/site/lualib/openssl/digest.so'
no file '/usr/local/openresty/lualib/openssl/digest.so'
no file './openssl/digest.so'
no file '/usr/local/lib/lua/5.1/openssl/digest.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/openssl/digest.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/kong/.luarocks/lib/lua/5.1/openssl/digest.so'
no file '/usr/local/openresty/site/lualib/openssl.so'
no file '/usr/local/openresty/lualib/openssl.so'
no file './openssl.so'
no file '/usr/local/lib/lua/5.1/openssl.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/openssl.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/kong/.luarocks/lib/lua/5.1/openssl.so'
Do you have any advice?
The text was updated successfully, but these errors were encountered:
Basically openssl-dev is missing. So need to install openssl-dev in your linux of choice, then run "luarocks install luaoss".
Docker image to include this plugin
FROM kong:2.6.0-alpine
USER root
RUN apk update && apk add git unzip build-base luarocks openssl-dev
#RUN luarocks install kong-oidc
RUN luarocks install lua-resty-jwt 0.2.2-0
RUN luarocks install lua-resty-openidc 1.7.2-1
RUN luarocks install luaossl
RUN luarocks install kong-oidc-auth
USER kong
Hmm I guess Kong removed one of the older dependencies they used to bundle in their installs. Any community members want to take a crack at adding it to this plugins dependencies and we can rebuild and cut another version :) . If not I will give a go at it.
Hi,
I'm trying to use kong-oidc-auth plugin in a fresh install of Kong in Docker.
I'm using the latest official Kong Docker image with Kong version 2.2.1.
The installation of the plugin is okay using
luarocks install kong-oidc-auth
.But when I startup Kong, I get the following error stack:
Do you have any advice?
The text was updated successfully, but these errors were encountered: