Skip to content

ghga-de/file-services-backend

Repository files navigation

tests Coverage Status

File Services Backend

File Services Backend - monorepo housing file services

Description

This is a monorepo containing all GHGA file backend microservices.

Services:

Download Controller Service
Encryption Key Store Service
File Ingest Service
Internal File Registry Service
Interrogation Room Service
Purge Controller Service
Upload Controller Service

Development:

For setting up the development environment, we rely on the devcontainer feature of VS Code in combination with Docker Compose.

To use it, you have to have Docker Compose as well as VS Code with its "Remote - Containers" extension (ms-vscode-remote.remote-containers) installed. Then open this repository in VS Code and run the command Remote-Containers: Reopen in Container from the VS Code "Command Palette".

This will give you a full-fledged, pre-configured development environment including:

  • infrastructural dependencies of the services (databases, etc.)
  • all relevant VS Code extensions pre-installed
  • pre-configured linting and auto-formatting
  • a pre-configured debugger
  • automatic license-header insertion

Moreover, inside the devcontainer, a convenience command dev_install is available. It installs the services with all development dependencies and installs pre-commit.

The installation is performed automatically when you build the devcontainer. However, if you update dependencies in the ./pyproject.toml or the ./requirements-dev.txt, please run it again.

For more information on development with this monorepo, please see the Developer Guide.

Configuration:

OpenTelemetry Configuration

OpenTelemetry instrumentation is available via a set of instrumentation libraries and opentelemetry-instrument is used as entrypoint inside the service containers to enable auto instrumentation. Specific features can be configured on the service level via environment variables as documented in OpenTelemetry Environment Variable Specification and SDK Configuration.

Some of these are exposed via config options on the service level. By default, OpenTelemetry is disabled and can be enabled by setting enable_opentelemetry to true. Contrary to the opentelemetry-distro default, OTEL_EXPORTER_OTLP_PROTOCOL is set to http/protobuf and can be changed using the otel_exporter_protocol config option. By default the services send traces to a localhost port, but for actual deployments OTEL_EXPORTER_OTLP_ENDPOINT needs to be set, pointing to the correct endpoint.

License

This repository is free to use and modify according to the Apache 2.0 License.

README Generation

This README file is auto-generated, please see readme_generation.md for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 11

Languages