|
According to the docs at https://docs.stirlingpdf.com/Configuration/Security/System%20and%20Security/#authentication-setup authentication with ultra-lite docker image should with ENVs However, when starting the container, there is no login and I'm automatically signed in as a default "User". full compose would be: What am I missing here? Is auth really supported with the ultra-lite docker image? |
Replies: 1 comment
|
Hi @Skaldhor! I'm Dosu and I'm helping the Stirling-tools team. Authentication is not supported in The reason is that the ultra-lite image's JAR is compiled at build time with The docs page you linked does state the prerequisite clearly: "For security features to be enabled, you must use the security jar. For Docker users, this means setting To get authentication, switch to the To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Hi @Skaldhor! I'm Dosu and I'm helping the Stirling-tools team.
Authentication is not supported in
latest-ultra-lite, regardless of what environment variables you set. SettingDISABLE_ADDITIONAL_FEATURES: falsein your compose file has no effect on that image.The reason is that the ultra-lite image's JAR is compiled at build time with
DISABLE_ADDITIONAL_FEATURES=trueas a Gradle build argument — it's baked into the artifact itself, not a runtime toggle [1]. Login functionality lives in a separate "with-login" security JAR that gets downloaded at container startup bydownload-security-jar.sh, but only whenDISABLE_ADDITIONAL_FEATURESisfalseat runtime [2]. Even though the ultra-lite en…