Skip to content

Multi Instance Symbols

Ra1nify edited this page Oct 31, 2026 · 1 revision

Symbol Summary

The main symbols surfaced by binary analysis, grouped by function. The full list is omitted.

Credential stack

codeassistclient.NewCompositeTokenStorage
codeassistclient.(*KeyringTokenStorage).SaveToken / LoadToken
codeassistclient.(*fileTokenStorage).SaveToken / LoadToken
codeassistclient.DefaultKeyringMarkerPath
codeassistclient.keyringRecentlyUnavailable

All store implementations share the same signatures and are interchangeable. The switch is isUseFileStatic.

Fallback conditions

Keyring SaveToken timed out after %v, falling back to file storage
Keyring LoadToken timed out after %v, falling back to file storage

The fallback only occurs during a token read or write; cold start does not trigger it.

authstore

authstore.UserScope / scopeForUserID / scopeFilePath
authstore.saveScope / savedScope / ClearSavedScope
authstore.userScopedStore.PinnedScope / ScopedKey

The scope only partitions keys inside authstore. It does not build the credential entry name.

Plugin accounts

sandboxproxy.ListAccounts / CredentialKey / storedAccounts
sandboxproxy.NewPluginAuthStore
sandboxproxy.(*signInBroker).beginPaste / completePaste

beginPaste accepts a pasted authorization code, but sign-in still writes the same entry.

Host authentication

codeassistclient.NewHostAuthProvider
codeassistclient.(*HostAuthProvider).GetTokenSource
codeassistclient.(*HostAuthProvider).ResolveAuthMode
codeassistclient.(*HostAuthProvider).IsBusinessEnterprise

The names point at enterprise gateway scenarios. 24 methods in total.

Host bridge

host_bridge_go_proto.(*UnimplementedHostBridgeServiceServer).GetOAuthToken
host_bridge_go_proto_connect.(*hostBridgeServiceClient).GetOAuthToken

Unimplemented on the server side; implemented on the client side.

Electron launch arguments

--standalone  --override_ide_name  --subclient_type  --override_ide_version
--override_user_agent_name  --https_server_port  --csrf_token
--app_data_dir  --api_server_url  --cloud_code_endpoint  --enable_sidecars

No authentication switch, and stdin is closed immediately after launch.

Experiment summary

Experiment Action Result
Scope isolation Three scope values in isolated sandboxes No new credential entry
Host bridge probe Connect listener on loopback 0 requests received
Launch without credentials Backed up and deleted the entry, then launched Started normally, no marker file, credential restored

Options ruled out

Option Why
Separate Windows users One system account per instance — too heavy
Hooking CredWrite Go's static linking leaves no IAT; redone on every core update
Patching the asar No credential symbols in the Electron main code
AGY_ACCOUNT Applies to plugin CLIs only

Clone this wiki locally