mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 16:39:50 +00:00
refactor: Remove dead code and stale references (#1987)
Remove stale Fly.io references from shared shell scripts. Fly.io was removed as a cloud provider (#1979) but comments referencing its specific token format ("FlyV1 <macaroon>") and container behavior remained in key-request.sh and github-auth.sh. Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d8131c3df6
commit
fe7cf1ba4b
2 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ _install_gh_brew() {
|
|||
|
||||
# Install gh via APT with GitHub's official repository (Debian/Ubuntu)
|
||||
_install_gh_apt() {
|
||||
# Use sudo only when not already root (Fly.io containers run as root)
|
||||
# Use sudo only when not already root (some cloud containers run as root)
|
||||
local SUDO=""
|
||||
if [[ "$(id -u)" -ne 0 ]]; then SUDO="sudo"; fi
|
||||
|
||||
|
|
|
|||
|
|
@ -121,8 +121,8 @@ process.stdout.write(d[process.env._VAR] || d.api_key || d.token || '');
|
|||
# downstream in unquoted expansions, eval contexts, or logging
|
||||
# Allow alphanumeric plus safe chars needed by real tokens:
|
||||
# - _ . / @ (standard API key chars)
|
||||
# : + = (base64 segments, URL-style formats)
|
||||
# space (Fly.io "FlyV1 <macaroon>" prefixed tokens)
|
||||
# : + = (base64 segments, URL-safe and base64 formats)
|
||||
# space (prefixed token formats, e.g., "Bearer <token>")
|
||||
# Must match CLI's loadTokenFromConfig regex in cli/src/digitalocean/digitalocean.ts
|
||||
if [[ ! "${val}" =~ ^[a-zA-Z0-9._/@:+=\ -]+$ ]]; then
|
||||
log "SECURITY: Invalid characters in config value for ${var_name}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue