Skip to content

v3.3.1 schemas and Dev Proxy API security features - #1881

Merged
waldekmastykarz merged 2 commits into
mainfrom
v4-fixes
Sep 22, 2026
Merged

waldekmastykarz merged 2 commits into
mainfrom
v4-fixes

Conversation

@waldekmastykarz

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings September 22, 2026 14:15
@waldekmastykarz
waldekmastykarz requested a review from a team as a code owner September 22, 2026 14:15
@waldekmastykarz
waldekmastykarz merged commit f2ba9e2 into main Sep 22, 2026
7 checks passed
@waldekmastykarz
waldekmastykarz deleted the v4-fixes branch September 22, 2026 14:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unresolved critical compatibility and credential-protection issues, plus moderate security, binding, schema, and test defects require changes.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 High severity · 2 Medium severity

Open (4)
What changed in this PR

Adds authenticated Dev Proxy API access, configurable binding and CORS, secure token handling, Docker/CI updates, and v3.3.1 schemas.

Changes:

  • Adds bearer-token authentication, API commands, and credential lifecycle management.
  • Updates documentation, examples, tests, Dockerfiles, and API binding configuration.
  • Adds v3.3.1 schemas and extends the v4 root schema.
File Reviewed change
tests/​devproxy-api.http Moderate (1 vote): REST Client token variable syntax prevents token resolution.
skills/​dev-proxy/​references/​configuration.md Documents API security and binding.
skills/​dev-proxy/​references/​ci-cd-integration.md Updates CI authentication guidance.
skills/​dev-proxy/​references/​analyze-api-usage.md Updates authenticated API usage examples.
scripts/​Dockerfile_local Enables container API binding and CLI access.
schemas/​v4.0.0/​rc.schema.json Adds API security configuration fields.
schemas/​v3.3.1/​typespecgeneratorplugin.schema.json Adds TypeSpec plugin schema.
schemas/​v3.3.1/​rewriteplugin.schema.json Adds rewrite plugin schema.
schemas/​v3.3.1/​rewriteplugin.rewritesfile.schema.json Adds rewrite rules schema.
schemas/​v3.3.1/​rc.schema.json Adds the v3.3.1 root configuration schema.
schemas/​v3.3.1/​ratelimitingplugin.schema.json Adds rate-limiting schema.
schemas/​v3.3.1/​ratelimitingplugin.customresponsefile.schema.json Adds rate-limit response schema.
schemas/​v3.3.1/​openapispecgeneratorplugin.schema.json Adds OpenAPI generator schema.
schemas/​v3.3.1/​openaitelemetryplugin.schema.json Adds OpenTelemetry schema.
schemas/​v3.3.1/​openaitelemetryplugin.pricesfile.schema.json Adds telemetry pricing schema.
schemas/​v3.3.1/​mockstdioresponseplugin.schema.json Adds STDIO mock plugin schema.
schemas/​v3.3.1/​mockstdioresponseplugin.mocksfile.schema.json Adds STDIO mocks schema.
schemas/​v3.3.1/​mockresponseplugin.schema.json Adds mock response schema.
schemas/​v3.3.1/​mockresponseplugin.mocksfile.schema.json Adds mock definitions schema.
schemas/​v3.3.1/​mockrequestplugin.schema.json Adds mock request schema.
schemas/​v3.3.1/​mockrequestplugin.mockfile.schema.json Adds mock request file schema.
schemas/​v3.3.1/​minimalpermissionsplugin.schema.json Adds permissions schema.
schemas/​v3.3.1/​minimalpermissionsguidanceplugin.schema.json Adds permissions guidance schema.
schemas/​v3.3.1/​minimalcsompermissionsplugin.schema.json Adds CSOM permissions schema.
schemas/​v3.3.1/​minimalcsompermissions.types.schema.json Adds CSOM types schema.
schemas/​v3.3.1/​latencyplugin.schema.json Adds latency schema.
schemas/​v3.3.1/​languagemodelratelimitingplugin.schema.json Adds language-model rate-limit schema.
schemas/​v3.3.1/​languagemodelratelimitingplugin.customresponsefile.schema.json Adds language-model response schema.
schemas/​v3.3.1/​languagemodelfailureplugin.schema.json Adds language-model failure schema.
schemas/​v3.3.1/​httpfilegeneratorplugin.schema.json Adds HTTP generator schema.
schemas/​v3.3.1/​hargeneratorplugin.schema.json Adds HAR generator schema.
schemas/​v3.3.1/​graphrandomerrorplugin.schema.json Adds Graph error schema.
schemas/​v3.3.1/​graphminimalpermissionsplugin.schema.json Adds Graph permissions schema.
schemas/​v3.3.1/​graphminimalpermissionsguidanceplugin.schema.json Adds Graph guidance schema.
schemas/​v3.3.1/​genericrandomerrorplugin.schema.json Adds generic error schema.
schemas/​v3.3.1/​genericrandomerrorplugin.errorsfile.schema.json Adds generic error response schema.
schemas/​v3.3.1/​executionsummaryplugin.schema.json Adds execution summary schema.
schemas/​v3.3.1/​devtoolsplugin.schema.json Moderate (3 votes): invalid JSON and missing supported preferredBrowserPath.
schemas/​v3.3.1/​crudapiplugin.schema.json Adds CRUD API plugin schema.
schemas/​v3.3.1/​crudapiplugin.apifile.schema.json Moderate (2 votes): action-level auth omits the supported apiKey value.
schemas/​v3.3.1/​cachingguidanceplugin.schema.json Adds caching guidance schema.
schemas/​v3.3.1/​authplugin.schema.json Adds authentication schema.
schemas/​v3.3.1/​apicenterproductionversionplugin.schema.json Adds API Center production-version schema.
schemas/​v3.3.1/​apicenteronboardingplugin.schema.json Adds API Center onboarding schema.
schemas/​v3.3.1/​apicenterminimalpermissionsplugin.schema.json Adds API Center permissions schema.
Dockerfile_beta Configures authenticated container API binding.
Dockerfile Configures authenticated container API binding.
DevProxy/​State/​StateManager.cs Persists state and cleans credentials.
DevProxy/​State/​ProxyInstanceState.cs Stores proxy URL state.
DevProxy/​State/​PrivateFiles.cs Adds protected file and directory handling.
DevProxy/​Proxy/​ProxyConfiguration.cs Adds API bind-address configuration.
DevProxy/​Proxy/​InteractiveConsoleService.cs Coordinates startup output.
DevProxy/​Proxy/​ConsoleHotkeyHandler.cs Prints authenticated API instructions.
DevProxy/​Program.cs Critical (3 votes): existing log directories are not secured before logging the bearer token.
DevProxy/​Extensions/​IServiceCollectionExtensions.cs Configures CORS and hosted services.
DevProxy/​Commands/​StopCommand.cs Uses authenticated API shutdown.
DevProxy/​Commands/​StatusCommand.cs Adds authenticated status reporting.
DevProxy/​Commands/​DevProxyConfigOptions.cs Parses API bind-address options.
DevProxy/​Commands/​DevProxyCommand.cs Moderate (1 vote): port-conflict checks ignore bind addresses; Nit (1 vote): stale /swagger help text.
DevProxy/​Commands/​ApiCommand.cs Adds token retrieval and API information commands.
DevProxy/​ApiSecurity.cs Moderate (1 vote): lacks automated coverage for authentication, origins, and preflight behavior.
DevProxy.Tests/​Fakes.cs Updates test configuration fakes.
DevProxy.Tests/​ConsoleHotkeyHandlerTests.cs Covers authenticated API output.
DevProxy.Integration.Tests/​TestProxyConfiguration.cs Updates integration test configuration.
DevProxy.Abstractions/​Proxy/​IProxyConfiguration.cs Critical (2 votes): required public member breaks compatibility for external implementations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

public interface IProxyConfiguration
{
int ApiPort { get; set; }
string ApiIpAddress { get; set; }
Comment thread DevProxy/Program.cs
{
_ = Directory.CreateDirectory(logDir);
PrivateFiles.EnsureDirectory(StateManager.GetConfigFolder());
PrivateFiles.EnsureDirectory(logDir);
Comment on lines +64 to +68
"enum": [
"none",
"entra"
],
"description": "Determines if the action is secured. Allowed values: none, entra. Default is none."
Comment on lines +17 to +21
]
"description": "Which browser to use to launch Dev Tools. Supported values: Edge, EdgeDev, Chrome. Default: Edge."
}
},
"additionalProperties": false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants