gravitee-io / issues

Gravitee.io - API Platform - Issues
64 stars 26 forks source link

Invalid interpolation format #8736

Closed manhkhoa168 closed 1 year ago

manhkhoa168 commented 1 year ago

Hello, while I use graviteeio/apim-management-api:latest and config environment gravitee_security_providers_0_users_1_password=this_is_password to change password of admin user, I see a error

ERROR: Invalid interpolation format for "environment" option in service "management-api"

I also use gravitee.security.providers[0].users[1].password=this_is_password instead, but same error appear. I want to know the cause and how to fix it. Thanks!

jhaeyaert commented 1 year ago

Does this_is_password is properly bcrypt encoded ?

manhkhoa168 commented 1 year ago

Does this_is_password is properly bcrypt encoded ?

yes i encrypted the password and set this_is_password to $2b$12$Xt5zt7.NbS...

manhkhoa168 commented 1 year ago

Does this_is_password is properly bcrypt encoded ?

Hello, can you suggest me any other problem i am facing or how to solve it?

phiz71 commented 1 year ago

Hello @manhkhoa168, I think you have to escape the $ character in your docker-compose. So $2b$12$Xt5zt7... should be $$2b$$12$$Xt5zt7...

gaetanmaisse commented 1 year ago

@manhkhoa168 did you try to escape $ as suggested by @phiz71 ?

gaetanmaisse commented 1 year ago

I'm closing the issue for now, feel free to reopen it if you're still facing the problem