Skip to content
/ ota-tuf Public

A Scala implementation of core TUF functionality

License

Notifications You must be signed in to change notification settings

uptane/ota-tuf

Folders and files

NameName
Last commit message
Last commit date
Feb 19, 2025
May 29, 2024
Apr 22, 2025
Nov 8, 2023
Jun 7, 2021
Mar 1, 2025
Feb 17, 2025
Mar 14, 2025
Mar 18, 2025
Feb 23, 2025
Apr 10, 2024
Apr 10, 2024
Mar 1, 2025
Aug 16, 2021
Aug 1, 2024
Nov 4, 2021
Apr 14, 2022
Mar 14, 2025
Jan 2, 2018
Dec 12, 2019
Apr 9, 2025

Repository files navigation

Ota-tuf

tuf implementation for over the air updates. This project is part of ota-community-edition.

This project is split into multiple modules:

  • reposerver - Manages tuf metadata for tuf repositories
  • keyserver - Manages key generation and online role signing for tuf roles
  • cli - Command line tools to manage a remote tuf repository. See cli/README
  • libtuf/libtuf-server - Dependencies for the other modules

Running

reposerver and keyserver should run as part of ota-community-edition. See cli/README for information on how to run the CLI tools.

You can then use sbt keyserver/run and sbt reposerver/run.

Running tests

You'll need a mariadb instance running with the users configured in application.conf. If you want it quick you can use deploy/ci_setup.sh. This will create a new docker container running a database with the proper permissions.

To run tests simply run sbt test.

To run integration tests:

sbt it:test

The cli module includes a test that requires an nginx to run with the proper TLS certificates, which match the certificates inside a zip file used for the test.

The nginx certificates can be renewed and copied to the correct places with the following command:

cd cli/src/test/resources/mtls-openssl && make clean all

This will require the certificates in the test zip file to be updated, which can be done with:

cd cli/src/test/resources/mtls-openssl && make update-credentials.zip

Continuous Integration

The deploy directory includes scripts required for CI jobs.

License

This code is licensed under the Mozilla Public License 2.0, a copy of which can be found in this repository. All code is copyright ATS Advanced Telematic Systems GmbH, 2016-2018.

About

A Scala implementation of core TUF functionality

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages