Files
RCD 0af0ad14e5 Merge upstream CLIProxyAPI v6.8.28–v6.8.32
Upstream changes:
- Codex responses compaction payload compatibility
- Codex usage_limit_reached retry-after, deterministic parsing
- Codex refresh_token_reused non-retryable fix
- Qwen rate limiting and quota error handling
- Context management compatibility simplification
- Antigravity tool_result image fix, model list backfill, deep copy cache
- Auth auto-refresh interval/concurrency limiting
- Auth hook OnResult refactor (replaces MarkResult)
- Gemini-3.1-flash-image support
- Registry cleanup of outdated model definitions

Fork resolution:
- Accept upstream's consolidated conductor.go (auto-refresh, round-tripper)
- Delete stale conductor_oauth.go, conductor_token.go (upstream reversed split)
- Delete stale provider_rotation_test.go (references removed method)
2026-02-27 20:58:16 +07:00

48 lines
1.5 KiB
Go

package updates
import (
_ "embed"
)
// PublicKey is the embedded GPG public key used to verify release signatures.
// This key should be replaced with the actual release signing key before deployment.
//
// To generate a new GPG key pair for signing releases:
// 1. gpg --full-generate-key (select RSA and RSA, 4096 bits)
// 2. gpg --armor --export KEY_ID > release-signing-key.asc
// 3. Replace the content of release-signing-key.asc below
//
// The private key should be kept secure and used only in the CI/CD pipeline
// to sign release binaries.
//
//go:embed release-signing-key.asc
var publicKeyArmored string
// GetPublicKey returns the embedded public key for signature verification.
func GetPublicKey() string {
return publicKeyArmored
}
// IsKeyConfigured returns true if a real public key has been configured.
// This checks if the key is not the placeholder content.
func IsKeyConfigured() bool {
// Check if the key contains the actual PGP public key block markers
return len(publicKeyArmored) > 0 &&
contains(publicKeyArmored, "-----BEGIN PGP PUBLIC KEY BLOCK-----") &&
contains(publicKeyArmored, "-----END PGP PUBLIC KEY BLOCK-----")
}
// contains is a simple helper to check if a string contains a substring.
func contains(s, substr string) bool {
return len(s) >= len(substr) && searchString(s, substr)
}
func searchString(s, substr string) bool {
for i := 0; i <= len(s)-len(substr); i++ {
if s[i:i+len(substr)] == substr {
return true
}
}
return false
}