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.1

Entrypoint

Return Type
Infisical !
Arguments
NameTypeDescription
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@f38e9b0a8804b1bbdc5f7f77dd12c80b745fda78 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@f38e9b0a8804b1bbdc5f7f77dd12c80b745fda78 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)
}