0.1.4 • Published 1 year ago

@elemental-clouds/oxygen v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Oxygen

Cloud secure configuration control library

Usage

Use the controls in this library with the Titanium control engine to validate your cloud infrastructure configuration.

import engine from '@elemental-clouds/titanium';

(() => {
  let item = {
    urn: 'urn:os-76:os-184:0.4.5:12345678101:S3::osmium',
    attributes: {
      bucket: {
        Name: 'osmium',
        CreationDate: '1970-01-01T00:00:00.000Z',
      },
      publicAccessBlocks: {
        BlockPublicAcls: true,
        IgnorePublicAcls: true,
        BlockPublicPolicy: true,
        RestrictPublicBuckets: true,
      },
    },
  };

  const procedure = [
    {
      $includes: [
        {
          attributes: {
            publicAccessBlocks: { BlockPublicAcls: true },
          },
        },
      ],
    },
  ];

  const status = engine(item, procedure);

  console.log(status.result); // COMPLIANT
})();
0.1.4

1 year ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago