aKode fase 2b-2: rimosso login ChatGPT e tutti i sottosistemi solo-ChatGPT

- Login: resta solo chiave API (+ header, Bedrock). Rimossi OAuth/browser,
  device code, refresh/revoke su auth.openai.com, PAT, agent/workload identity,
  runtime agent instance, backend-client e openapi-models, workspace routing.
- Rimossi: generazione immagini (ext + skill imagegen), history notes, plugin
  remoti (catalogo, sync, share), cyber access program, daybreak, cloud config
  e requirements (config_server ora fail-closed), attestation, frozen cloud
  skills, EMA MCP auth, Codex Apps/connettori, ricerca ospitata, header/zstd/
  routing/cookie del backend Codex, fallback OPENAI_API_KEY del realtime.
- Messaggi d'errore senza link a chatgpt.com.
- Chiavi di config legacy accettate e ignorate; feature rimosse = Stage::Removed.
- Test: cancellati solo quelli del codice rimosso; test di sicurezza
  (sandbox estensioni, permessi, redazione, auth storage, requirements)
  adattati. Restano solo fallimenti d'ambiente (code-mode-host/V8, ~/.agents).
- Istruzioni di sistema invariate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 16:20:15 +01:00
parent 82347a58ed
commit 6089fbde91
1573 changed files with 10289 additions and 177679 deletions

View File

@@ -636,7 +636,7 @@
},
"CloudToml": {
"additionalProperties": false,
"description": "Cloud-owned feature settings.",
"description": "Removed: cloud-owned feature settings are accepted and ignored.",
"properties": {
"skills": {
"allOf": [
@@ -644,7 +644,7 @@
"$ref": "#/definitions/FeatureToggleToml"
}
],
"description": "Cloud skills are permitted by default; the host must supply a cloud provider."
"description": "Removed: cloud skills are no longer supported; accepted and ignored."
}
},
"type": "object"
@@ -2780,33 +2780,8 @@
},
"type": "object"
},
"McpEmaTokenEndpointAuthMethod": {
"description": "Token endpoint authentication selected by a confidential EMA client registration.",
"enum": [
"client_secret_basic",
"client_secret_post"
],
"type": "string"
},
"McpEnterpriseManagedAuthConfig": {
"additionalProperties": false,
"properties": {
"idp": {
"allOf": [
{
"$ref": "#/definitions/McpServerIdpOAuthConfig"
}
],
"description": "Shared enterprise authorization, independent of Codex account credentials."
}
},
"required": [
"idp"
],
"type": "object"
},
"McpServerAuth": {
"description": "Authentication flow for an HTTP MCP server. Explicit credentials take precedence for OAuth and ChatGPT; EMA rejects alternate credentials and fallback.",
"description": "Authentication flow for an HTTP MCP server. Explicit credentials take precedence for OAuth and ChatGPT.",
"oneOf": [
{
"description": "Use stored MCP OAuth credentials when available. Starting an OAuth login is a separate operation.",
@@ -2823,7 +2798,7 @@
"type": "string"
},
{
"description": "Exchange an enterprise IdP refresh token for resource-specific authorization. Alternate credentials and ordinary OAuth fallback are not permitted.",
"description": "Removed: enterprise-managed authorization (EMA) was deleted. Accepted so existing configs still parse; servers that select it are never started.",
"enum": [
"ema_auth"
],
@@ -2853,44 +2828,10 @@
}
]
},
"McpServerIdpOAuthConfig": {
"additionalProperties": false,
"properties": {
"client_id": {
"description": "OAuth client registered with that enterprise IdP.",
"type": "string"
},
"client_secret": {
"description": "Provisioned client secret for confidential IdP login and token exchange. Omitted for a public client.",
"type": "string"
},
"issuer": {
"description": "Issuer used for enterprise OAuth discovery and identity validation.",
"type": "string"
},
"token_endpoint_auth_method": {
"allOf": [
{
"$ref": "#/definitions/McpEmaTokenEndpointAuthMethod"
}
],
"description": "Registered EMA client authentication method. Defaults to client_secret_basic when a secret is configured; requires a client secret."
}
},
"required": [
"client_id",
"issuer"
],
"type": "object"
},
"McpServerOAuthConfig": {
"additionalProperties": false,
"description": "Client settings for MCP OAuth login or enterprise token exchange.",
"description": "Client settings for MCP OAuth login.",
"properties": {
"authorization_server_issuer": {
"description": "Expected resource authorization server issuer for EMA token exchange.",
"type": "string"
},
"callback_port": {
"description": "Fixed callback port that takes precedence over Codex's global OAuth callback port.",
"format": "uint16",
@@ -2908,14 +2849,6 @@
"client_secret": {
"description": "OAuth client secret used for token exchange with a pre-registered client.",
"type": "string"
},
"token_endpoint_auth_method": {
"allOf": [
{
"$ref": "#/definitions/McpEmaTokenEndpointAuthMethod"
}
],
"description": "Registered EMA client authentication method. Defaults to client_secret_basic when a secret is configured; requires a client secret."
}
},
"type": "object"
@@ -3156,7 +3089,7 @@
"description": "Overrides for the optional API features supported by a custom provider.",
"properties": {
"cyber_access_programs": {
"description": "Whether the provider accepts explicit `access_programs.cyber` selections. Defaults to enabled for the built-in OpenAI provider and disabled otherwise. This does not grant program access or change authentication.",
"description": "Removed: explicit access-program selection was deleted. Accepted and ignored so existing provider configs keep loading.",
"type": "boolean"
},
"external_web_access": {
@@ -3893,7 +3826,7 @@
"$ref": "#/definitions/FeatureToggleToml"
}
],
"description": "Legacy no-op setting retained for compatibility. Use `cloud.skills` to configure cloud skills."
"description": "Legacy no-op setting retained for compatibility."
}
},
"type": "object"
@@ -3964,7 +3897,7 @@
"type": "object"
},
"auto_provision": {
"description": "Provisioning metadata. Omission does not request provisioning. Only applies with `remote_plugin_id` and Plugin Service availability to the requesting user at provisioning time. Effective enablement, trusted provisioning policy, and authentication and authorization restrictions still apply. This value is not trusted authorization and does not trigger provisioning.",
"description": "Removed: remote plugin provisioning metadata. Remote plugins are not available in aKode; this key is accepted and ignored.",
"type": "boolean"
},
"enabled": {
@@ -3979,11 +3912,11 @@
"type": "object"
},
"release_id": {
"description": "Release identifier used to pin the remote plugin to a specific release. Omission leaves release selection unchanged. Core stores this metadata without selecting or fetching a release.",
"description": "Removed: remote plugin release pin. Remote plugins are not available in aKode; this key is accepted and ignored.",
"type": "string"
},
"remote_plugin_id": {
"description": "Stable, unique identifier of a ChatGPT-hosted remote plugin. Availability to the requesting user is determined by Plugin Service at provisioning time.",
"description": "Removed: identifier of a ChatGPT-hosted remote plugin. Remote plugins are not available in aKode; this key is accepted and ignored.",
"type": "string"
}
},
@@ -4851,7 +4784,7 @@
"type": "integer"
},
"use_history_notes_extension": {
"description": "Whether to expose the built-in history and notes extension.",
"description": "Removed: the hosted history and notes extension was deleted. Accepted and ignored.",
"type": "boolean"
}
},
@@ -7594,7 +7527,7 @@
"$ref": "#/definitions/CloudToml"
}
],
"description": "Cloud-owned feature settings."
"description": "Removed: cloud-owned feature settings are accepted and ignored."
},
"compact_prompt": {
"description": "Compact prompt used for history compaction.",
@@ -7604,7 +7537,7 @@
"$ref": "#/definitions/ComputerUseConfigToml"
},
"daybreak": {
"description": "Default Daybreak preference for new threads and non-interactive turns.",
"description": "Removed: Daybreak controls were deleted. Accepted and ignored.",
"type": "boolean"
},
"default_permissions": {
@@ -8471,13 +8404,8 @@
"type": "object"
},
"mcp_enterprise_managed_auth": {
"allOf": [
{
"$ref": "#/definitions/McpEnterpriseManagedAuthConfig"
}
],
"default": null,
"description": "Trusted enterprise IdP shared by EMA-enabled MCP servers and plugins."
"description": "Removed: enterprise-managed MCP authorization (EMA) was deleted. Accepted and ignored."
},
"mcp_oauth_callback_port": {
"description": "Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex will bind to an ephemeral port chosen by the OS.",