Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-1516

[GHI#29625] Database driver install examples can lead to permission errors in some circumstances

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [X] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      docs

      Describe the bug

      In a couple of the guides in the Keycloak documentation, there are examples of how to include external jars in a customized image via the container ADD instruction. While they mention -chown, they do not mention -chmod. At least in some scenarios not setting the file mode will lead to permission errors at Keycloak startup, e.g.:

      ```
      ERROR: Failed to open /opt/keycloak/lib/../providers/ojdbc11.jar
      ERROR: /opt/keycloak/lib/../providers/ojdbc11.jar (Permission denied)
      ```

      The documentation should be improved to include --chmod=644 for in its examples, to allow more users to have an error-free experience

      Version

      nightly

      Regression

      [ ] The issue is a regression

      Expected behavior

      The server should boot without issues

      Actual behavior

      The server fails to boot with a "Permission denied" error

      How to Reproduce?

      Follow the examples in the documentation, on a system that applies a umask of 600 to ADD'ed files, and try to boot the container in kubernetes

      Anything else?

      https://www.keycloak.org/server/db
      https://www.keycloak.org/server/containers

              Unassigned Unassigned
              pvlha Pavel Vlha
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: