Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Releases: forseti-security/resource-policy-evaluation-library

v2.0.4

02 Jul 02:53
270c7ae
Compare
Choose a tag to compare

Changes:

  • Added GcpOrganization resource
  • Added GcpDatafusionInstance resource

v2.0.3

29 Jun 23:06
4008ad9
Compare
Choose a tag to compare

Fixes:

  • Fix rpe.resources.gcp.GoogleAPIResource issue with passing mutable objects as default values

v2.0.2

23 Jun 21:44
8416ebc
Compare
Choose a tag to compare

Changes:

  • Add support for relative imports in python policies

v2.0.1

01 Jun 17:57
1308acf
Compare
Choose a tag to compare

Changes:

  • Prevent to_dict() from raising

v2.0.0

23 Apr 21:25
70fce4a
Compare
Choose a tag to compare

This release includes a number of breaking changes. It includes a redesign of the OPA Policy Engine policy format, and the GoogleAPIResource classes.

Policy Engine changes

  • A dataclass has been added for evaluations rpe.policy.Evaluations, which includes references to the poilcy engine and the resource.
  • Policy engines now have an evaluate(resource) function which returns a list of rpe.policy.Evaluations
  • Each evaluation has its own remediate() function
  • An ABC was created for engines rpe.engines.Engine

Open Policy Agent policy file changes

  • The valid rule has been renamed complaint
  • The valid/compliant no longer passes for exclusions
  • The excluded rule has been added so we can now determine whether something is compliant separately from whether or not its excluded
  • All remediations use the remediation_spec instead of the older update solution
  • All policies are in a single namespace, and define an applies_to list of resource types, checked against input.type for evaluations
  • A single entrypoint handles evaluations of applicable policies, by type /v1/data/rpe/evaluate

Python policy engine changes

  • It works now, I think
  • It uses the new engine structure mentioned above

GoogleAPIResource changes

  • A single class now retrieves both the resource metadata and the IAM policy where applicable
  • The GoogleAPIResource.factory method was replaced with GoogleAPIResource.from_resource_data
  • All resource types have been updated to use the format that Cloud Asset Inventory uses (our early custom resource types have been removed)

v1.1.15

30 Mar 20:26
bc6f2f2
Compare
Choose a tag to compare
v1.1.15 Pre-release
Pre-release
  • Added terminal states for GKE clusters

v1.1.4

02 Mar 22:55
258fd3a
Compare
Choose a tag to compare
v1.1.4 Pre-release
Pre-release
  • Catch unrecoverable states in CloudSQL instance waiter
  • Don't call getAncestry when calling to_dict()

v1.1.3

26 Feb 13:46
65e465d
Compare
Choose a tag to compare
v1.1.3 Pre-release
Pre-release
Merge pull request #48 from forseti-security/allow_explicit_project_id

Allow passing explicit project_id

v1.1.2

25 Feb 22:47
a965495
Compare
Choose a tag to compare
v1.1.2 Pre-release
Pre-release
Merge pull request #47 from forseti-security/fix_ancestry_call

Move cloud resource manager client into ancestry call

v1.1.1

20 Feb 18:50
a965495
Compare
Choose a tag to compare
v1.1.1 Pre-release
Pre-release
Merge pull request #47 from forseti-security/fix_ancestry_call

Move cloud resource manager client into ancestry call