Skip to content

feat: support custom delegated targets using offline keys (#647)#939

Open
Dev10-sys wants to merge 2 commits into
repository-service-tuf:mainfrom
Dev10-sys:feature/custom-delegated-offline-keys-647
Open

feat: support custom delegated targets using offline keys (#647)#939
Dev10-sys wants to merge 2 commits into
repository-service-tuf:mainfrom
Dev10-sys:feature/custom-delegated-offline-keys-647

Conversation

@Dev10-sys

Copy link
Copy Markdown

Description

This PR introduces support for submitting pre-signed delegated targets metadata
using offline keys, as proposed in issue #647.

A new endpoint has been added to allow users to provide externally signed
delegated targets metadata, which is then validated and processed asynchronously.

Reference issue:
repository-service-tuf/repository-service-tuf#647

Changes

  • Added new endpoint:
    POST /api/v1/delegations/metadata

  • Introduced new payload model:
    MetadataDelegatedCustomPayload

  • Extended delegation service to support custom metadata flow

  • Ensured strict separation between:

    • standard delegation flow
    • custom metadata delegation flow

Behavior

  • Accepts pre-signed TUF targets metadata
  • Submits async task to worker
  • Returns task ID for tracking

Testing

  • Added unit test:
    test_post_delegation_metadata

  • Verified:

    • 202 Accepted response
    • task creation
    • correct payload forwarding to worker

Notes

  • Changes are minimal and aligned with existing API structure
  • No breaking changes introduced

Type of change

  • New feature

Additional requirements

  • Tests added

Code of Conduct

  • I agree to follow this project's Code of Conduct

@Dev10-sys Dev10-sys force-pushed the feature/custom-delegated-offline-keys-647 branch from efbd2b7 to 4419d9b Compare April 21, 2026 13:31
Signed-off-by: Dev10-sys <kalpanagola9897@gmail.com>
Signed-off-by: Dev10-sys <kalpanagola9897@gmail.com>
@Dev10-sys Dev10-sys force-pushed the feature/custom-delegated-offline-keys-647 branch from 4419d9b to 4f2e595 Compare April 21, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant