Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP458: Add minimal RSTUF service configuration #15241

Merged
merged 5 commits into from
Jan 26, 2024

Commits on Jan 25, 2024

  1. remove vault container

    The vault container was a previous TUF implementation
    (TUF initialization pypi#7488)
    
    The new integration with RSTUF does not require this container.
    
    Signed-off-by: Kairo de Araujo <[email protected]>
    kairoaraujo committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    7ed9a00 View commit details
    Browse the repository at this point in the history
  2. PEP 458: Add RSTUF services in the Warehouse Infra

    This commit adds the RSTUF services to the Warehouse infrastructure
    for development and sets the minimum required to start RSTUF services.
    
    It adds the RSTUF API, which is used later to integrate into Warehouse
    and RSTUF Worker, which is responsible for computing the TUF metadata.
    
    The RSTUF requires the Postgres and Redis.
    Postgres stores the rstuf database used for TUF metadata computing.
    Redis stores the task message queue between RSTUF API and Worker, task
    backend result, and live settings between RSTUF services.
    
    RSTUF shares the same Postgres and Redis in development environment
    but has a specific setup to use its own Postgres database and Redis
    database ID.
    
    Postgresql URI
    `RSTUF_SQL_SERVER=postgresql://postgres@db:5432/rstuf`
    
    Redis DB Broker and Result is id 1
    `RSTUF_BROKER_SERVER=redis://redis/1`
    `RSTUF_REDIS_SERVER_DB_RESULT=1`
    
    Redis DB for TUF repository settings is 2
    `RSTUF_REDIS_SERVER_DB_REPO_SETTINGS=2`
    
    This commit also includes TUF database creation in the Makefile
    during the `make initdb`.
    
    Signed-off-by: Kairo de Araujo <[email protected]>
    kairoaraujo committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    2e182d3 View commit details
    Browse the repository at this point in the history
  3. remove rstuf-worker unnecessary settings

    Remove settings from rstuf-worker in docker-compose.yml
    
    Signed-off-by: Kairo de Araujo <[email protected]>
    kairoaraujo committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    6116b2e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9d89a8a View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    c4393c4 View commit details
    Browse the repository at this point in the history