diff options
| author | Zuul <zuul@review.opendev.org> | 2022-09-06 11:59:30 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2022-09-06 11:59:30 +0000 |
| commit | 2a4a8fce31c12114e8f472c24dd96864b5bd2bd2 (patch) | |
| tree | 9288ed91a0e4efdab2ba9548d693c6eaf14a8539 /doc/source/admin | |
| parent | 2c2dc39b3bb39a27e6f94dbd797c9406bf512109 (diff) | |
| parent | 5b1da017988c987fc68b55d1f45b5d2676474ce1 (diff) | |
| download | kolla-2a4a8fce31c12114e8f472c24dd96864b5bd2bd2.tar.gz kolla-2a4a8fce31c12114e8f472c24dd96864b5bd2bd2.zip | |
Merge "Fix CVE-2022-38060"
Diffstat (limited to 'doc/source/admin')
| -rw-r--r-- | doc/source/admin/kolla_api.rst | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/doc/source/admin/kolla_api.rst b/doc/source/admin/kolla_api.rst index 455578212..775dcad9c 100644 --- a/doc/source/admin/kolla_api.rst +++ b/doc/source/admin/kolla_api.rst @@ -93,27 +93,17 @@ Here is an example configuration file: Passing the configuration file to the container ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The configuration can be either passed via the ``KOLLA_CONFIG`` environment -variable or as a file bind-mounted into the container. When bind-mounting the -configuration file, the ``KOLLA_CONFIG_FILE`` environment variable controls -where the file is located in the container, the default path being +The configuration to the container can be passed through a dedicated path: ``/var/lib/kolla/config_files/config.json``. - -Passing the configuration file as environment variable: - -.. code-block:: console - - docker run -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS \ - -e KOLLA_CONFIG='{ "command": "...", "permissions": [ { "path": "...", } ] }' \ - kolla-image +It is advised to ensure this path is mounted read-only for security reasons. Mounting the configuration file in the container: .. code-block:: console docker run -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS \ - -e KOLLA_CONFIG_FILE=/config.json \ - -v /path/to/config.json:/config.json kolla-image + -v /path/to/config.json:/var/lib/kolla/config_files/config.json:ro \ + kolla-image .. _kolla_api_environment_variables: @@ -126,10 +116,6 @@ Variables to pass to the containers The Kolla containers also understand some environment variables to change their behavior at runtime: -* **KOLLA_CONFIG**: load kolla config from the environment, takes precedence - over ``KOLLA_CONFIG_FILE``. -* **KOLLA_CONFIG_FILE**: path to kolla json config file, defaults to - ``/var/lib/kolla/config_files/config.json``. * **KOLLA_CONFIG_STRATEGY** (required): Defines how the :ref:`kolla_start script <kolla_api_external_config>` copies the configuration file. Must be one of: |
