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.2
Entrypoint
Return Type
Infisical !
Arguments
Name | Type | Description |
---|---|---|
siteUrl | String | The URL of the Infisical API. Default is default="https://api.infisical.com" |
universalAuthClientId | Secret ! | Your machine identity client ID |
universalAuthClientSecret | Secret ! | Your machine identity client secret |
Example
dagger -m github.com/NunoFrRibeiro/daggerverse/infisical@4233197fce59ab09b3d67db02045e499cb9ee3e1 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
Name | Type | Default Value | Description |
---|---|---|---|
secretKey | String ! | - | The key of the secret to retrieve |
projectId | String ! | - | The project ID where the secret lives in |
environment | String ! | - | The slug name (dev, prod, etc) of the environment from where secrets should be fetched from |
secretPath | String | - | The path from where secret should be fetched from |
secretType | String | - | 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@4233197fce59ab09b3d67db02045e499cb9ee3e1 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)
}