Skip to content

Disable signature validation if timeout period exceeded#3572

Open
mgunnala wants to merge 4 commits intoAzure:developfrom
mgunnala:disable
Open

Disable signature validation if timeout period exceeded#3572
mgunnala wants to merge 4 commits intoAzure:developfrom
mgunnala:disable

Conversation

@mgunnala
Copy link
Contributor

@mgunnala mgunnala commented Mar 3, 2026

Description

Issue #

To avoid impacting customers during telemetry release, the signature validation feature should be disabled if a certain timeout period is exceeded (10 seconds, by default).

PR information

  • Ensure development PR is based on the develop branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines


Distro maintenance information, if applicable

  • This is a contribution from a distro maintainer
  • The changes in this PR have been taken as a downstream patch (Note: it is not recommended to patch the agent without upstream review and approval)

if not ignore_signature_validation_errors:
cleanup_package_with_invalid_signature(package_file)
raise
if isinstance(ex, SignatureValidationTimeoutError):
Copy link
Member

Choose a reason for hiding this comment

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

this probably should be done before the check at 1471

# validation errors should not be ignored, otherwise report the error and continue.
if not ignore_signature_validation_errors:
raise # Package has already been cleaned up
if isinstance(ex, SignatureValidationTimeoutError):
Copy link
Member

Choose a reason for hiding this comment

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

We are duplicating too much logic for the existing/downloaded extension package. I don't recall: what was the motivation for doing the signature validation as part of self.protocol.client.download_zip_package and not here?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants