Skip to content

[BUG] FILE__ environment variables are not made into variables and are just set as the name #285

@DaanSelen

Description

@DaanSelen

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

AS the name states. In my Docker compose I am trying to implement the secrets at as much places as possible. However the Docker image for Bookstack refuses to either read the file or be set into a variable.

FILE__myvar=/run/secrets/mypass literally becomes "/run/secrets/mypass"
And the variable name literally becomes: FILE__myvar

Expected Behavior

To either create the variable myvar with the contents of the file.

Steps To Reproduce

Docker compose and try to use docker secrets located at /run/secrets

Environment

- OS: Ubuntu 22.04 LTS
- How docker service was installed: Through the Docker website

CPU architecture

x86-64

Docker creation

Docker compose with any FILE__ variables

Container logs

bookstack-server    |   at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:838
bookstack-server    |     834▕             $exceptionType = $this->isUniqueConstraintError($e)
bookstack-server    |     835▕                 ? UniqueConstraintViolationException::class
bookstack-server    |     836▕                 : QueryException::class;
bookstack-server    |     837▕
bookstack-server    |   ➜ 838▕             throw new $exceptionType(
bookstack-server    |     839▕                 $this->getNameWithReadWriteType(),
bookstack-server    |     840▕                 $query,
bookstack-server    |     841▕                 $this->prepareBindings($bindings),
bookstack-server    |     842▕                 $e,

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions