Retire the Spotiverse profile; keep the spotify provider intact for restore
Spotiverse was lost with the E: drive and has no repository in the swarm,
but /v1/oauth/spotify/start stayed publicly reachable and
GC_ACCESS_PROVIDER_SPOTIFY_CLIENT_ID/_SECRET stayed configured on
yggdrasil. That path would have run a real OAuth handshake against a real
secret and taken custody of a user's Spotify refresh token for a consumer
that could not use it.
The seam is supportsProvider(profile, provider): a provider with no app
behind it is unreachable. So the registry entry is what had to go, not the
provider.
Removed: spotiverseProfile and its registry entry, the spotiverse slug
from appSlugs, the hardcoded callback arm in app.ts, and three
spotiverse-specific tests. Removed from the host: the two spotify env
vars, backed up to /root/heimdall-service.env.bak-20260906-spotify. Nine
other provider vars and the file's 0600 heimdall:heimdall ownership are
untouched.
Kept deliberately: the entire spotify provider -- the providers.ts catalog
entry, spotifyRuntime and its token/profile exchange in oauth.ts, and
"spotify" in the providers union. It is intact and unreferenced, which is
what makes restoring a registry change rather than protocol work. The
capability is wanted back; a Persona managing the queue during a stream is
the motivating case.
docs/app-profiles/spotiverse.md is now the restore spec rather than an
archive: what was removed, what was kept, the base commit 5a15f71 to
recover the profile verbatim, and the daemon's callback URL
(http://127.0.0.1:8796/auth/heimdall/callback), which existed only in a
hardcoded allowlist arm and would otherwise have been lost with it.
Before deleting the three tests I checked their routes keep coverage:
managed-credential resolve is exercised twice via streampixels, and
backend_callback handoff at three other sites. The generic
untrusted_backend_callback negative test was retargeted to bifrost rather
than deleted. 35 pass, 9 files; tsc clean.
Verified the deployed build still boots without the vars --
readProviderConfig returns an empty config rather than throwing, so the
running release fails that route at request time instead of at startup.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
5a15f711e8
commit
707da368b1
7 changed files with 59 additions and 169 deletions
|
|
@ -141,36 +141,6 @@ const streampixelsProfile: AppProfile = {
|
|||
},
|
||||
};
|
||||
|
||||
const spotiverseProfile: AppProfile = {
|
||||
slug: "spotiverse",
|
||||
displayName: "Spotiverse",
|
||||
profileVersion: "2026-06-02",
|
||||
identityProviders: ["spotify"],
|
||||
entitlementSources: [],
|
||||
managedConnectionProviders: ["spotify"],
|
||||
capabilities: [
|
||||
{
|
||||
key: "spotify_player_read",
|
||||
mode: "shared",
|
||||
summary: "May read the linked Spotify account playback, queue, and device state.",
|
||||
sharedRule: identityFacts.authenticated,
|
||||
},
|
||||
{
|
||||
key: "spotify_queue_add",
|
||||
mode: "shared",
|
||||
summary: "May request add-to-queue through the Spotiverse command boundary.",
|
||||
sharedRule: identityFacts.authenticated,
|
||||
},
|
||||
],
|
||||
evaluateSharedCapabilities(context) {
|
||||
if (!context.facts.has(identityFacts.authenticated)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return ["spotify_player_read", "spotify_queue_add"];
|
||||
},
|
||||
};
|
||||
|
||||
const bifrostProfile: AppProfile = {
|
||||
slug: "bifrost",
|
||||
displayName: "Bifrost",
|
||||
|
|
@ -230,7 +200,6 @@ const ghostlightProfile: AppProfile = {
|
|||
export const appProfiles: Record<AppSlug, AppProfile> = {
|
||||
repixelizer: repixelizerProfile,
|
||||
streampixels: streampixelsProfile,
|
||||
spotiverse: spotiverseProfile,
|
||||
bifrost: bifrostProfile,
|
||||
ghostlight: ghostlightProfile,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -500,10 +500,6 @@ function acceptsBackendCallback(config: HeimdallConfig, appSlug: AppSlug, handof
|
|||
return handoff.callbackUrl === "https://repixelizer.gamecult.org/api/auth/heimdall/callback";
|
||||
}
|
||||
|
||||
if (appSlug === "spotiverse") {
|
||||
return handoff.callbackUrl === "http://127.0.0.1:8796/auth/heimdall/callback";
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ export const providers = ["discord", "patreon", "github", "twitch", "youtube", "
|
|||
|
||||
export type Provider = (typeof providers)[number];
|
||||
|
||||
export const appSlugs = ["repixelizer", "streampixels", "spotiverse", "bifrost", "ghostlight"] as const;
|
||||
export const appSlugs = ["repixelizer", "streampixels", "bifrost", "ghostlight"] as const;
|
||||
|
||||
export type AppSlug = (typeof appSlugs)[number];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue