Skip to content

Deprecate Install-Datadog.ps1 and relax CN signature check#49570

Open
clarkb7 wants to merge 4 commits intomainfrom
branden.clark/script-cn
Open

Deprecate Install-Datadog.ps1 and relax CN signature check#49570
clarkb7 wants to merge 4 commits intomainfrom
branden.clark/script-cn

Conversation

@clarkb7
Copy link
Copy Markdown
Contributor

@clarkb7 clarkb7 commented Apr 20, 2026

What does this PR do?

  • Adds a deprecation warning when Install-Datadog.ps1 runs, pointing users to datadog-installer.exe and the in-app installation guide.
  • Relaxes the Authenticode signature subject check to match any Datadog CN rather than the exact literal CN="Datadog, Inc". Our next cert may have CN="Datadog, Inc." (note the trailing period), which would fail the old check.
  • Bumps $SCRIPT_VERSION to 1.2.2 and adds a reno note.

Motivation

Install-Datadog.ps1 was used during the Fleet Automation preview in 2024 but was never made generally available. Some customers are still using it and would be impacted by the strict CN="Datadog, Inc" check the next time we rotate our code signing key — our next cert may have CN="Datadog, Inc." (with a trailing period), which the old match would reject. This PR officially deprecates the script, relaxes the CN check so existing users keep working across key rotations, and adds an in-script notice pointing customers to datadog-installer.exe and the in-app installation guide.

Jira: WINA-2595

Describe how you validated your changes

Manual run of the script on Windows: verified the deprecation warning prints and the signature check still passes against a signed installer.

e2e tests run the script and check the certs

See also #incident-52121, follow up will have cert with new CN, the pipeline there should pass now.

Print a deprecation warning pointing users to datadog-installer.exe and
the in-app install guide. Loosen the signature subject check to match
any 'Datadog' CN, since the CN string varies by signing authority.
@clarkb7 clarkb7 added qa/done QA done before merge and regressions are covered by tests team/windows-products labels Apr 20, 2026
@clarkb7 clarkb7 changed the title fix(windows): Deprecate Install-Datadog.ps1 and relax CN signature check Deprecate Install-Datadog.ps1 and relax CN signature check Apr 20, 2026
@dd-octo-sts dd-octo-sts bot added the internal Identify a non-fork PR label Apr 20, 2026
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Apr 20, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts bot commented Apr 20, 2026

Files inventory check summary

File checks results against ancestor 3a85c628:

Results for datadog-agent_7.80.0~devel.git.55.db0b75f.pipeline.108578513-1_amd64.deb:

No change detected

@clarkb7 clarkb7 marked this pull request as ready for review April 20, 2026 14:32
@clarkb7 clarkb7 requested a review from a team as a code owner April 20, 2026 14:32
Copy link
Copy Markdown

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

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: 7339d2d6b8

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/windows/DatadogAgentInstallScript/Install-Datadog.ps1
@clarkb7 clarkb7 added backport/7.78.x Automatically create a backport PR to the 7.78.x branch once the PR is merged backport/7.79.x Automatically create a backport PR to the 7.79.x branch once the PR is merged labels Apr 20, 2026
@ethandebnath7702
Copy link
Copy Markdown

in-script notice LGTM, thanks for adding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/7.78.x Automatically create a backport PR to the 7.78.x branch once the PR is merged backport/7.79.x Automatically create a backport PR to the 7.79.x branch once the PR is merged internal Identify a non-fork PR qa/done QA done before merge and regressions are covered by tests short review PR is simple enough to be reviewed quickly team/windows-products

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants