Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pulumi/policy

Package Overview
Dependencies
Maintainers
2
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pulumi/policy - npm Package Versions

1
14

0.2.1-dev.1573946944

Diff

pulumi-bot
published 0.2.1-dev.1573844157 •

pulumi-bot
published 0.2.1-dev.1573758693 •

pulumi-bot
published 0.2.0 •

Changelog

Source

0.2.0 (2019-11-13)

  • API changes to enable new types of policies (i.e. validating all resource in a stack) and passing additional information to validation functions (https://github.com/pulumi/pulumi-policy/pull/131).

    • Policy.rules is now ResourceValidationPolicy.validateResource.
    • typedRule is now validateTypedResource.
    • Policy violations are now reported through a reportViolation callback, rather than using asserts.
    • A new StackValidationPolicy policy type is available for defining policies that check all resources in a stack.
    • Validation functions can now be async and return Promise<void>.

    Example:

    new PolicyPack("aws-policy-pack", {
        policies: [{
            name: "s3-no-public-read",
            description: "Prohibits setting the publicRead or publicReadWrite permission on AWS S3 buckets.",
            enforcementLevel: "mandatory",
            validateResource: validateTypedResource(aws.s3.Bucket, (bucket, args, reportViolation) => {
                if (bucket.acl === "public-read" || bucket.acl === "public-read-write") {
                    reportViolation(
                        "You cannot set public-read or public-read-write on an S3 bucket. " +
                        "Read more about ACLs here: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html");
                }
            }),
        }],
    });
    
  • Allow policies to deal with Pulumi secret values (https://github.com/pulumi/pulumi-policy/pull/115).

pulumi-bot
published 0.1.2-dev.1573689752 •

pulumi-bot
published 0.1.2-dev.1573595883 •

pulumi-bot
published 0.1.2-dev.1573513627 •

pulumi-bot
published 0.1.2-dev.1573255259 •

pulumi-bot
published 0.1.2-dev.1572922869 •

pulumi-bot
published 0.1.2-dev.1571934289 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc