debian-forge/osbuild
Christian Kellner 21a60324bc buildroot: bind mount individual API endpoints
The current way API end points, i.e. sockets for API providers,
are provided to the sandbox is via a temporary directory that
is created by `BuildRoot` which later gets bind-mounted to a well
known path, i.e. /run/osbuild/api inside the sandbox. API providers
are expected to create their socket in that temporary directory.

Now that `BuildRoot` has a `regsiter_api` method and each API has
an `endpoint` property, the socket of each API provider, no matter
where it is located, will get bind-mounted individually inside
the sandbox at /run/osbuild/api using the `endpoint` identifier.

For backwards compatibility reasons the temporary api directory
will still be created by `BuildRoot`, but it is no longer bind
mounted inside the container. This paves the way to remove that
directory completely once all API providers are converted to not
use that directory anymore.
2020-07-27 12:50:38 +01:00
..
util util/selinux: add gefilecon helper 2020-06-15 20:36:48 +02:00
__init__.py osbuild: extract CLI to prepare for additional entrypoints 2020-04-28 15:39:54 +02:00
__main__.py osbuild: use osbuild_cli directly as main entry 2020-07-17 16:30:46 +01:00
api.py api: each API defines its 'endpoint' name 2020-07-27 12:50:38 +01:00
buildroot.py buildroot: bind mount individual API endpoints 2020-07-27 12:50:38 +01:00
loop.py loop: fix FD leak in mknod() 2020-04-21 13:02:29 +02:00
main_cli.py api: introduce pipeline monitoring 2020-07-21 13:25:04 +02:00
meta.py meta: also validate the schema for sources 2020-06-02 09:50:14 +02:00
monitor.py api: introduce pipeline monitoring 2020-07-21 13:25:04 +02:00
objectstore.py objectstore: proper path handling for ObjectStore 2020-07-22 09:37:30 +01:00
pipeline.py pipeline: use buildroot.regsiter_api 2020-07-27 12:50:38 +01:00
remoteloop.py api: each API defines its 'endpoint' name 2020-07-27 12:50:38 +01:00
sources.py api: each API defines its 'endpoint' name 2020-07-27 12:50:38 +01:00
treesum.py treesum: don't use dir_fd parameter in os.scandir() 2019-11-29 00:45:14 +01:00