sops
SOPS: Simple And Flexible Tool For Managing Secrets
Installation
dagger install github.com/RawkodeAcademy/RawkodeAcademy/daggerverse/sops@fbfee5969919328f8a003d6c14762b4f6e2e0227
Entrypoint
Return Type
Sops
Example
dagger -m github.com/RawkodeAcademy/RawkodeAcademy/daggerverse/sops@fbfee5969919328f8a003d6c14762b4f6e2e0227 call \
func (m *myModule) example() *Sops {
return dag.
Sops()
}
@function
def example() -> dag.Sops:
return (
dag.sops()
)
@func()
example(): Sops {
return dag
.sops()
}
Types
Sops 🔗
getSecrets() 🔗
Get a list of secrets from an encrypted SOPs file
Return Type
[Secret ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
privateKey | Secret ! | - | The private key used for decrypting secrets |
directory | Directory ! | - | The directory containing the encrypted SOPs file |
inputType | String ! | "yaml" | The input format of your encrypted SOPs file |
Example
dagger -m github.com/RawkodeAcademy/RawkodeAcademy/daggerverse/sops@fbfee5969919328f8a003d6c14762b4f6e2e0227 call \
get-secrets --private-key env:MYSECRET --directory DIR_PATH --input-type string
func (m *myModule) example(privateKey *Secret, directory *Directory, inputType string) []*Secret {
return dag.
Sops().
GetSecrets(privateKey, directory, inputType)
}
@function
def example(private_key: dagger.Secret, directory: dagger.Directory, input_type: str) -> List[dagger.Secret]:
return (
dag.sops()
.get_secrets(private_key, directory, input_type)
)
@func()
example(privateKey: Secret, directory: Directory, inputType: string): Secret[] {
return dag
.sops()
.getSecrets(privateKey, directory, inputType)
}