LogoLogo
EDCDSPortalDAPS
CE 11.0.0
CE 11.0.0
  • Welcome
  • Key Concepts
  • FAQ
  • Frontend
    • Walkthrough
    • Dashboard
    • Providing
      • 1. Create Data Offer
      • 2. Create Asset
      • 3. Create Policy
      • 4. Create Contract Definition
    • Consuming
      • 1. Finding Offers
      • 2. Initiating Transfers (HttpData-Push)
      • 3. Transfer History
    • Contract Termination
  • Backend
    • Postman
    • API-Wrapper vs Management-API
    • API-Wrapper
      • Java Client Library
    • Management-API
      • Secrets API
      • Contract Definition: Multiple Assets
      • QuerySpec
      • Health Check APIs
      • Policy: Business Partner Groups
      • Policy: Unrestricted
    • Data Transfer
      • HttpData-Pull (Parameterized)
      • AWS S3 Transfer
      • Source: Audit Headers
      • Source/Sink: OAuth2/API-Key
  • Community Edition Deployment
    • Overview
    • Local Demo
    • Production
  • Customer Links
    • Glossary
    • sovity Hub
    • Service Desk
Powered by GitBook
LogoLogo

sovity

  • Homepage
  • About us
  • GitHub
  • LinkedIn

Information

  • Contact
  • Imprint
  • Privacy Policy

© by sovity GmbH

On this page
  • Key Concepts
  • Endpoints
  • 1. Create a Secret
  • 2. Retrieve a Secret
  • 3. Delete a Secret
  • 4. Update a Secret
  • Limitations

Was this helpful?

Edit on GitHub
  1. Backend
  2. Management-API

Secrets API

This API is designed for managing and creating secrets in the Connector Vault, which are typically used for OAuth2 flows.

Key Concepts

  • secret-alias: Represents the unique identifier (alias) for the secret in the vault. It acts as a reference to retrieve or manage the stored secret.

  • my-secret: Represents the actual value of the secret that needs to be stored. This could be sensitive data, such as client credentials or tokens.

Endpoints

1. Create a Secret

Use this endpoint to create a new secret in the Connector Vault.

Endpoint: POST {{EDC_MANAGEMENT_URL}}/v3/secrets

Request Body:

JSON
{
    "@context": {
        "edc": "https://w3id.org/edc/v0.0.1/ns/"
    },
    "@type": "Secret",
    "@id": "secret-alias",
    "edc:value": "my-secret"
}
  • @id: Unique identifier (alias) for the secret.

  • edc:value: The secret value to be stored.

2. Retrieve a Secret

Use this endpoint to retrieve a secret by its unique identifier.

Endpoint: GET {{EDC_MANAGEMENT_URL}}/v3/secrets/:secret-id

  • Replace :secret-id with the unique identifier (alias) of the secret.

3. Delete a Secret

Use this endpoint to delete a stored secret by its unique identifier.

Endpoint: DELETE {{EDC_MANAGEMENT_URL}}/v3/secrets/:secret-id

  • Replace :secret-id with the unique identifier (alias) of the secret.

4. Update a Secret

Use this endpoint to update the value of an existing secret.

Endpoint: PUT {{EDC_MANAGEMENT_URL}}/v3/secrets

Request Body:

JSON
{
    "@context": {
        "edc": "https://w3id.org/edc/v0.0.1/ns/"
    },
    "@type": "Secret",
    "@id": "secret-id",
    "edc:value": "my-updated-secret"
}
  • @id: Unique identifier (alias) for the secret.

  • edc:value: The updated secret value to be stored.

Limitations

  • You cannot add json structures to the vault. This is necessary if you want to add AWS-S3 Credentials to the vault.

Last updated 2 months ago

Was this helpful?