Skip to main content

Credentials

Synth credentials are reusable resources. Store a credential once, then reference it from any Project, watcher, remote Git backend, ingestion flow, or provider configuration that supports its type.

Credentials are never attached or assigned to individual Projects.

Personal And Organization​

ScopeWho can see and select itWho can edit or delete it
PersonalIts owner and administratorsIts owner and administrators
OrganizationEvery authenticated user, in every ProjectAdministrators

Use a Personal credential for a token that belongs to you. Use an Organization credential for a service account or team token that everyone should be able to select.

Secret values remain server-side. Credential lists, component cards, logs, and API responses expose safe metadata rather than the stored secret.

How Saved Credentials Are Protected​

Synth automatically encrypts values saved in its credential store using AES-256-GCM. There is nothing to enable. Existing credentials are converted when you upgrade; you do not need to enter tokens again. Connections, permissions, and sharing stay the same.

Keep Synth's persistent data directory when restarting, upgrading, or moving the instance. By default it contains both your credentials and their encryption key.

Back up the complete SYNTH_HOME, including hidden files, with the app and ingestion worker stopped. Restore that directory together. Default backups contain the key, so encrypt the backups and restrict access. If your deployment supplies an external encryption key, preserve it separately and supply the same key after restore.

If Synth reports that credential storage is unavailable, restore the original key and matching data. Do not generate a replacement key or delete the old one: a new key cannot open existing credentials. See credential encryption and recovery for operator instructions.

Create A Personal Credential​

  1. Open Settings → Credentials.
  2. Select New credential.
  3. Choose the credential type, give it a recognizable name, and enter its values.
  4. Save it.

You can now select that credential while configuring any Project you can edit. Other non-admin users do not see it in credential lists.

For a Google Drive service account, choose Google Drive Service Account and upload the downloaded JSON key. Synth validates the credential type and stores the secret server-side, then displays only safe metadata such as the service-account email and Google project ID. Use the email to share the watched folder as Viewer.

Create An Organization Credential​

Administrators can:

  1. Open Global Settings → Credentials.
  2. Select New credential.
  3. Choose the type, name, and values.
  4. Save it.

The credential immediately becomes selectable by every user in every Project. There is no Project assignment step.

Before making a Drive credential Organization-scoped, confirm that its folder access and organizational audience are appropriate for everyone who can configure a watcher. Organization scope controls who can select the credential in Synth; Google Drive sharing still controls what the service account can read.

Find And Manage Credentials​

Settings → Credentials shows everything available while configuring the current Project. Personal and Organization credentials are grouped separately, and every row shows its type, connection status, access scope, Project availability, last update, and permitted actions.

Use the search field to find a credential by name, type, ID, or safe connection metadata. Use the Type, Status, and Scope filters to narrow the list, then sort by last update, name, or creation date. The summary above the list shows the total Personal and Organization credentials available in the current Project context.

Administrators use Global Settings → Credentials for the Organization inventory. This view adds readiness, owner, and provider-type summaries plus an Owner filter. Manage is the primary row action; connection tests and deletion remain in the overflow menu so routine management does not place a destructive action beside every credential.

Credential status has two user-facing states:

  • Connected means a credential value is stored. For types with an explicit connection test, run the test from Organization settings before assigning the credential.
  • Needs attention means no usable value is currently stored. Edit the credential before selecting it for a new integration.

Open More actions → View details to inspect the credential without exposing its secret. The drawer separates Overview, Usage, and Sharing so you can confirm identity, availability, and access policy before making a change. Secret previews are always masked. For Google Drive credentials, safe metadata includes the service-account email and Cloud project ID, with a Copy email action for folder sharing.

Deleting a credential requires an explicit confirmation and can interrupt every provider, watcher, ingestion flow, or remote backend that references its ID. Review the drawer's Usage and Sharing guidance before deleting it.

Google Drive Key Safety​

  • Grant the service account no Google Cloud project roles; it only needs the Drive API enabled and direct Viewer access to the intended folder.
  • Share the narrowest root folder. Child folders inherit that access, so review their contents before starting a recursive watcher.
  • An external-recipient warning in Drive is expected when your organization treats the service account as external. Verify the email, then keep Viewer access rather than broadening the link-sharing policy.
  • Delete unnecessary downloaded copies after validation. If the JSON appears in chat, source control, logs, screenshots, telemetry, or a ticket, revoke the key in Google Cloud and create a replacement.
  • To rotate a key for the same service account, edit the credential and upload the replacement JSON. Synth authenticates it before the atomic replacement; a failed test leaves the current key active. Restart or explicitly update the watcher so its cached client adopts the new key, then run a complete reconcile. A key for a different service-account email must be saved as a new credential and migrated watcher by watcher.

Existing Components​

A watcher or remote backend may already reference a Personal credential owned by another user. Collaborators can see a restricted reference so they can understand how the component is configured, but they cannot see the secret or select that credential for a new component. The existing component continues to run.

Deleting any credential can interrupt every component that references its ID. Review existing provider, watcher, ingestion, and remote-backend configuration before deletion.

CaSC And Helm​

Credentials imported through Configuration-as-Code appear as Organization credentials. With the Helm chart, define them under synth.credentials and load secret values from Kubernetes Secret environment variables:

synth:
credentials:
github-read-token:
type: github_pat
name: GitHub read token
data:
token:
env: GITHUB_PAT

Projects and components reference only the credential ID:

projects:
team-docs:
watchers:
docs:
type: git
repo: https://github.com/example/private-docs
credential: github-read-token

Keep the token itself in a Kubernetes Secret, not in Helm values or CaSC.