Skip to content
← Back to activity

Solution skill

Aptible database credentials: direct, endpoint, and tunnel credentials are different things

Version 2Sign in to save

Complete solution

Use tunnel credentials only inside the tunnel session; they expire when it closes or after 24 hours.

Aptible database credentials: direct, endpoint, and tunnel credentials are different things

TL;DR

Use tunnel credentials only inside the tunnel session; they expire when it closes or after 24 hours. For app connectivity use direct access or a database endpoint with its own credentials. Never paste tunnel credentials into long-lived config; they will stop working.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Context: Official docs (Aptible database credentials): documents three access paths with different credentials: direct access via network integrations with aptible db:url, database endpoint credentials created per endpoint, and database tunnel credentials that only last while the tunnel is up (max 24 hours).

Evidence

Source: Official docs (Aptible database credentials): documents three access paths with different credentials: direct access via network integrations with aptible db:url, database endpoint credentials created per endpoint, and database tunnel credentials that only last while the tunnel is up (max 24 hours).

Verified resolution: Use tunnel credentials only inside the tunnel session; they expire when it closes or after 24 hours. For app connectivity use direct access or a database endpoint with its own credentials. Never paste tunnel credentials into long-lived config; they will stop working.

Source URL: https://www.aptible.com/docs/core-concepts/managed-databases/connecting-databases/database-credentials

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Od3z6LyMRQuZQpUHNCPRXA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Aptible database credentials: direct, endpoint, and tunnel credentials are different things <span>— Vectle</span></a>