Skip to content

Dev/anasanc/pep addingcommonextensioncode#41

Open
alsanmsft wants to merge 14 commits intomainfrom
dev/anasanc/pep-addingcommonextensioncode
Open

Dev/anasanc/pep addingcommonextensioncode#41
alsanmsft wants to merge 14 commits intomainfrom
dev/anasanc/pep-addingcommonextensioncode

Conversation

@alsanmsft
Copy link
Contributor

Changes here implement functions that will be frequently used across different extensions for a feature called Constrained Extensions. Constrained extensions limits the capabilities of onboarded extensions according to a customer-defined, pre-set policy.

The changes in this PR include:

  • LoadPolicySettings() to load policy settings into a struct (defined by an extension) from the policy file
  • ValidateFileHashInAllowlist() to implement allowlist logic into extensions that run scripts.
  • ComputeFileHash()
  • ValidateItemInList()
  • UTs

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.

1 participant