Documentation

Overview

    Package config provides a way to find and load SOPS configuration files

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func FindConfigFile

    func FindConfigFile(start string) (string, error)

      FindConfigFile looks for a sops config file in the current working directory and on parent directories, up to the limit defined by the maxDepth constant.

      Types

      type Config

      type Config struct {
      	KeyGroups         []sops.KeyGroup
      	ShamirThreshold   int
      	UnencryptedSuffix string
      	EncryptedSuffix   string
      	EncryptedRegex    string
      	Destination       publish.Destination
      }

        Config is the configuration for a given SOPS file

        func LoadDestinationRuleForFile

        func LoadDestinationRuleForFile(confPath string, filePath string, kmsEncryptionContext map[string]*string) (*Config, error)

          LoadDestinationRuleForFile works the same as LoadForFile, but gets the "creation_rule" from the matching destination_rule's "recreation_rule".

          func LoadForFile

          func LoadForFile(confPath string, filePath string, kmsEncryptionContext map[string]*string) (*Config, error)

            LoadForFile load the configuration for a given SOPS file from the config file at confPath. A kmsEncryptionContext should be provided for configurations that do not contain key groups, as there's no way to specify context inside a SOPS config file outside of key groups.

            Source Files