Dagger
Search

infisical

(for now this module only retrieves secrets from a project authenticating using Universal Auth)

Installation

dagger install github.com/NunoFrRibeiro/daggerverse/infisical@v0.1.3

Entrypoint

Return Type
Infisical !
Arguments
NameTypeDefault ValueDescription
siteUrlString -The URL of the Infisical API. Default is default="https://api.infisical.com"
universalAuthClientIdSecret !-Your machine identity client ID
universalAuthClientSecretSecret !-Your machine identity client secret
Example
dagger -m github.com/NunoFrRibeiro/daggerverse/infisical@b513c4b32694a85d0e085b92baf818102d3afb37 call \
 --universal-auth-client-id env:MYSECRET --universal-auth-client-secret env:MYSECRET
func (m *myModule) example(universalAuthClientId *Secret, universalAuthClientSecret *Secret) *Infisical  {
	return dag.
			Infisical(universalAuthClientId, universalAuthClientSecret)
}
@function
def example(universal_auth_client_id: dagger.Secret, universal_auth_client_secret: dagger.Secret) -> dag.Infisical:
	return (
		dag.infisical(universal_auth_client_id, universal_auth_client_secret)
	)
@func()
example(universalAuthClientId: Secret, universalAuthClientSecret: Secret): Infisical {
	return dag
		.infisical(universalAuthClientId, universalAuthClientSecret)
}

Types

Infisical 🔗

getSecret() 🔗

Return Type
Secret !
Arguments
NameTypeDefault ValueDescription
secretKeyString !-The key of the secret to retrieve
projectIdString !-The project ID where the secret lives in
environmentString !-The slug name (dev, prod, etc) of the environment from where secrets should be fetched from
secretPathString -The path from where secret should be fetched from
secretTypeString -The type of the secret. Valid options are “shared” or “personal”. If not specified, the default value is “shared”
Example
dagger -m github.com/NunoFrRibeiro/daggerverse/infisical@b513c4b32694a85d0e085b92baf818102d3afb37 call \
 --universal-auth-client-id env:MYSECRET --universal-auth-client-secret env:MYSECRET get-secret --secret-key string --project-id string --environment string
func (m *myModule) example(universalAuthClientId *Secret, universalAuthClientSecret *Secret, secretKey string, projectId string, environment string) *Secret  {
	return dag.
			Infisical(universalAuthClientId, universalAuthClientSecret).
			GetSecret(secretKey, projectId, environment)
}
@function
def example(universal_auth_client_id: dagger.Secret, universal_auth_client_secret: dagger.Secret, secret_key: str, project_id: str, environment: str) -> dagger.Secret:
	return (
		dag.infisical(universal_auth_client_id, universal_auth_client_secret)
		.get_secret(secret_key, project_id, environment)
	)
@func()
example(universalAuthClientId: Secret, universalAuthClientSecret: Secret, secretKey: string, projectId: string, environment: string): Secret {
	return dag
		.infisical(universalAuthClientId, universalAuthClientSecret)
		.getSecret(secretKey, projectId, environment)
}