Skip to content

Add egress schema to polykey secrets env #429

@aryanjassal

Description

@aryanjassal

Specification

Use ajv to create a schema validator for egress of secrets. It should follow a env.schema.json as is drafted in zeta house. Refer to the parent issue for more information

Additional context

Tasks

  1. Use ajv to read and validate schema
  2. Modify env behaviour based on provided schema via a flag
  3. Throw error and fail-fast when encountering any error
  4. The secrets should not be bulk-fetched and should be streamed per secret as is dictated by the schema

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions