Skip to content

Add proto for Windows in discovery service - #69640

Open
danielashare wants to merge 1 commit into
masterfrom
danielashare/discovery-service-windows-proto
Open

Add proto for Windows in discovery service#69640
danielashare wants to merge 1 commit into
masterfrom
danielashare/discovery-service-windows-proto

Conversation

@danielashare

@danielashare danielashare commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR adds proto in support of adding Windows non-AD desktop discovery to the discovery service.
The changes to:

  1. discoveryconfig.proto allow summaries of discovered VMs to be tracked and shown to uses.
  2. events.proto adds a field to the azure.run event that specifies which type of VM was affected (node or windows.auth-packge (slightly funny name for a first addition of a windows resource to this part of the codebase, but we'll soon have a windows agent which will be called something like windows.agent)).
  3. types.proto for Windows specific settings during installation.

Tracking Issue and RFD for the feature.

Manual Test Plan

Test Environment

This branch is split from a larger (+4,561, -2,613) branch that I didn't want to have people review, testing was done on that branch.

Test Cases

  • Discovery service can read dynamic discovery config correctly
  • Discovery statistics are populated correctly

@danielashare danielashare self-assigned this Aug 13, 2026
@danielashare danielashare added the no-changelog Indicates that a PR does not require a changelog entry label Aug 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 454c68dd5b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

HTTPProxySettings HTTPProxySettings = 11 [(gogoproto.jsontag) = "http_proxy_settings,omitempty"];
// WindowsScriptName is the name of the teleport installer script resource for
// the cloud instance to execute on Windows.
string WindowsScriptName = 12 [(gogoproto.jsontag) = "windows_script_name,omitempty"];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Regenerate DiscoveryConfig derived consumers

When this new install-param field (and the two below it) is changed on an existing DiscoveryConfig, the discovery service can treat the update as a no-op: api/types/discoveryconfig/derived.gen.go's deriveTeleportEqual_17 still compares only through HTTPProxySettings, and lib/srv/discovery/discovery.go skips matcher refreshes when oldDiscoveryConfig.IsEqual(dc). The Terraform discovery_config schema also still enumerates the old InstallerParams attributes, so plans cannot preserve these values; regenerate/update those helpers with the new fields.

AGENTS.md reference: AGENTS.md:L17-L17

Useful? React with 👍 / 👎.

Comment thread api/proto/teleport/legacy/types/events/events.proto Outdated
Comment thread api/proto/teleport/legacy/types/types.proto Outdated
@danielashare
danielashare force-pushed the danielashare/discovery-service-windows-proto branch from 454c68d to 6d68f85 Compare August 14, 2026 11:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d68f85a37

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread api/types/discoveryconfig/derived.gen.go Outdated
Comment thread api/proto/teleport/legacy/types/types.proto
@danielashare
danielashare force-pushed the danielashare/discovery-service-windows-proto branch from 6d68f85 to 2f814c8 Compare August 14, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants