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

fix(core): refine key management schema #1997

Conversation

strantalis
Copy link
Member

@strantalis strantalis commented Mar 20, 2025

Proposed Changes

This is the schema changes required to support key management.

Loading
erDiagram
key_access_server {
  uuid id
  varchar uri
  varchar name
  varchar source_type
}

key_access_server_keys {
  uuid id
  uuid key_access_server_id
}

asym_keys {
  uuid id
  varchar key_id
  varchar algorithm
  varchar key_status
  varchar key_mode
  jsonb   public_key_ctx
  jsonb   private_key_ctx
  date    expiration
  uuid    provider_config_id
  jsonb   metadata
  timestamp created_at
  timestamp updated_at
}

sym_keys {
  uuid id
  varchar key
  varchar key_id
  varchar key_status
  varchar key_mode
  uuid provider_config_id
  jsonb metadata
  timestamp created_at
  timestamp updated_at
}

provider_configuration {
  uuid id
  varchar provider_type
  jsonb config_json
  jsonb metadata
  timestamp created_at
  timestamp updated_at
}

namespace_public_key_mappings {
  uuid namespace_id
  uuid kas_key_id
}

definition_public_key_mappings {
  uuid definition_id
  uuid kas_key_id
}

value_public_key_mappings {
  uuid value_id
  uuid kas_key_id
}

key_access_server ||--o{ key_access_server_keys : has
key_access_server_keys ||--|| asym_keys : inherits
asym_keys }o--|| provider_configuration : uses
sym_keys }o--|| provider_configuration : uses
asym_keys ||--o{ namespace_public_key_mappings : maps_to
asym_keys ||--o{ definition_public_key_mappings : maps_to
asym_keys ||--o{ value_public_key_mappings : maps_to

Checklist

  • I have added or updated unit tests
  • I have added or updated integration tests (if appropriate)
  • I have added or updated documentation

Testing Instructions

Sorry, something went wrong.

@strantalis strantalis requested review from a team as code owners March 20, 2025 18:22
@strantalis strantalis force-pushed the dspx-646/key-schema-updates branch 2 times, most recently from 0f25440 to fafc8c7 Compare March 24, 2025 18:44
@strantalis strantalis closed this Mar 24, 2025
@strantalis strantalis reopened this Mar 24, 2025
@strantalis strantalis force-pushed the dspx-646/key-schema-updates branch from fafc8c7 to e80f385 Compare March 24, 2025 18:52
@strantalis strantalis requested a review from jakedoublev March 25, 2025 16:48
@strantalis strantalis force-pushed the dspx-646/key-schema-updates branch from 84bc319 to 3552b81 Compare March 25, 2025 18:34
@strantalis strantalis merged commit a646548 into opentdf:feature/key-management Mar 25, 2025
18 checks passed
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.

None yet

2 participants