indigo-iam/iam

error when running docker : Key Set resource could not be read: URL [file:/var/lib/indigo/iam-login-service/keystore.jwks]

Closed this issue · 1 comments

sigau commented

Title: Unable to Read Keystore JWKS File in Docker Container

Issue Description:

Hi,

I am trying to install a new instance of Indigo IAM using Docker since the RPM distribution is no longer maintained. I followed the documentation, configured Nginx and MariaDB, obtained the X509 certificate, and generated the JSON keystore, just as I did for the RPM distribution, which was working correctly.

I created an iam-login-service_env file in /indigo-iam/config/ and then ran the following docker run command:
iam-login-service_env.txt

docker run -d --name iam-login-service --net=iam -p 8080:8080 --env-file=/indigo-iam/config/iam-login-service_env -v /var/lib/indigo/iam-login-service/keystore.jwks:/keystore.jwks:ro --restart unless-stopped indigoiam/iam-login-service

However, when I checked the Docker logs, I encountered the following error:

Caused by: java.lang.IllegalArgumentException: Key Set resource could not be read: URL [file:/var/lib/indigo/iam-login-service/keystore.jwks]

docker.e.txt

The permissions of the file seem to be correct, -rw-rw-rw- 1 root root 971 Aug 2 13:07 /var/lib/indigo/iam-login-service/keystore.jwks.

Can you please help me identify the issue and suggest any necessary changes to make it work?

Thank you in advance.

Gautier

sigau commented

find the solution in #596