Skip to content
LakeSharkDocumentation
SECURITY / DOCUMENTATION

Identity and credentials

LakeShark credentials and when to use each one.

Credential types

Credential Use
Human access token Interactive product administration
Service credential Obtain an access token for management automation
Question Key Send questions to one AnswerSet
Provider credential Allow LakeShark to call an AI provider

Human access tokens

Access tokens include the authenticated user, organization/workspace context, and effective scopes.

Switching organization or workspace returns a new token.

Service accounts

Use a workspace service account for unattended management API access.

Assign only the roles the automation requires. Service credentials can be revoked independently or the service account can be disabled.

Question Keys

A Question Key:

  • routes to one AnswerSet
  • is shown when issued
  • can be named and revoked
  • does not grant general management access or executions.evaluate permission
  • can trigger its AnswerSet’s approved Automatic ExecutionSet connections, subject to the deployed legacy migration state; it cannot select or execute arbitrary independent Flows

Treat Question Keys as potentially side-effecting credentials when approved Automatic connections exist or a legacy attached graph remains active. Rotate or revoke a compromised key, restrict its distribution, and use a stable UUID Idempotency-Key when retrying the same logical request. Independent Flows require a separate credential boundary, documented in Flow Keys and API. See AnswerSet action authorization for approval and delivery evidence.

Store it as an application secret.

Provider credentials

Provider credentials are stored on provider connections and are not returned through the API after storage.

Rotating a provider credential does not require rotating application Question Keys.

Handling rules

  • Keep credentials out of source control and logs.
  • Store application and service credentials in a managed secret store.
  • Rotate credentials when required by policy or incident response.
  • Revoke credentials that are no longer needed.