Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Improve config validation #47

Description

@itsdalmo

We should consider moving sidecred.Config to a subpackage so we can import concrete types from the provides/stores and do additional validation. This is so we can catch configuration errors before deploying the config. We should also add a validate subcommand to the CLI for this purpose.

The following interfaces should cover what we need inside sidecred.Process:

type Config interface {
  Validate() error
  Requests() []Request
}

type Request interface {
  Store()       *StoreConfig
  Credentials() []*CredentialRequest
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions