Skip to content

Enable golink OAuth authentication on spore#344

Merged
stackptr merged 6 commits intomainfrom
golink-oauth
Mar 10, 2026
Merged

Enable golink OAuth authentication on spore#344
stackptr merged 6 commits intomainfrom
golink-oauth

Conversation

@stackptr
Copy link
Owner

Switch golink to the apoxy-dev fork (dilyevsky/tsnet-1.90-upgrade branch) to enable OAuth key support. Updated the tailscale-auth-key secret to use an OAuth client secret, which doesn't expire like regular auth keys.

Fixes the vendorHash mismatch by setting services.golink.package directly with the correct hash.

See: tailscale/golink#210

stackptr and others added 6 commits March 9, 2026 19:55
Switch golink input from tailscale/golink to the apoxy-dev fork
(dilyevsky/tsnet-1.90-upgrade branch) to enable OAuth key
authentication, which is not yet available upstream.

See: tailscale/golink#210

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace expiring Tailscale auth key with a non-expiring OAuth client
secret for golink authentication.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The apoxy-dev fork has a stale vendorHash in its flake.nix. Add a
local overlay to fix it, and reorder NixOS modules so the golink
overlay is applied before ours.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
vendorHash is consumed by buildGoModule to create a separate
fixed-output derivation, so overrideAttrs doesn't reach it. Override
goModules.outputHash directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
overrideAttrs can't reach vendorHash since it's consumed by
buildGoModule before derivation creation. Rebuild the package
from scratch using the same source and ldflags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The golink flake's overlay always overwrites pkgs.golink with its
own pre-built package, making overlay-based overrides ineffective.
Set services.golink.package directly with the correct vendorHash.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stackptr stackptr enabled auto-merge (squash) March 10, 2026 04:18
@stackptr stackptr merged commit 925479d into main Mar 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant