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

@trautonen/cdk-dns-validated-certificate

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trautonen/cdk-dns-validated-certificate - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

.projenrc.ts

@@ -53,3 +53,3 @@ import { awscdk } from 'projen'

autoApproveOptions: {
allowedUsernames: ['github-bot'],
allowedUsernames: ['github-bot', 'trautonen'],
label: 'auto-approve',

@@ -56,0 +56,0 @@ secret: 'GITHUB_TOKEN',

@@ -63,5 +63,7 @@ "use strict";

};
var stringifyProperties = (properties) => {
return JSON.stringify(properties, void 0, 2);
};
var parseDomainValidationRecords = (certificate) => {
const options = certificate.DomainValidationOptions ?? [];
console.log("options: ", options);
if (options.length > 0 && options.every((opt) => opt.ResourceRecord?.Name)) {

@@ -131,3 +133,3 @@ const uniqueRecords = [...new Map(options.map((opt) => [opt.ResourceRecord?.Name, opt.ResourceRecord])).values()];

const changeId = await changeRecordSets(route53, "UPSERT", validationRecords, HostedZoneId);
console.log(`All validation records changed succesfully for change id ${changeId}`);
console.log(`All validation records changed succesfully for change id ${changeId.replace("/change/", "")}`);
console.log(`Waiting for certificate ${CertificateArn} to validate`);

@@ -162,3 +164,3 @@ const result = await (0, import_client_acm.waitUntilCertificateValidated)({ client: acm, maxWaitTime: 300 }, { CertificateArn });

const changeId = await changeRecordSets(route53, "DELETE", validationRecords, hostedZoneId);
console.log(`All validation records removed successfully for change id ${changeId}`);
console.log(`All validation records removed successfully for change id ${changeId.replace("/change/", "")}`);
} catch (error) {

@@ -172,3 +174,3 @@ if (error instanceof import_client_route_53.InvalidChangeBatch && error.message.includes("not found")) {

}
console.log(`Deleting certificate ${certificateArn}`);
console.log(`Deleting certificate ${certificateArn} from ACM`);
const deleteCertificateInput = {

@@ -236,2 +238,4 @@ CertificateArn: certificateArn

case "Create": {
console.log(`Requesting new certificate:
${stringifyProperties(properties)}`);
const certificateArn = await requestCertificate(acm, route53, event.RequestId, properties);

@@ -251,2 +255,4 @@ if (properties.Tags && Object.entries(properties.Tags).length > 0) {

if (shouldRequestNew(parseProperties(event.OldResourceProperties), properties)) {
console.log(`Requesting new certificate due to change of properties:
${stringifyProperties(properties)}`);
certificateArn = await requestCertificate(acm, route53, event.RequestId, properties);

@@ -267,2 +273,4 @@ }

if (properties.RemovalPolicy === "destroy") {
console.log(`Deleting old certificate as per removal policy:
${stringifyProperties(properties)}`);
await deleteCertificate(

@@ -269,0 +277,0 @@ acm,

@@ -33,5 +33,7 @@ "use strict";

};
const stringifyProperties = (properties) => {
return JSON.stringify(properties, undefined, 2);
};
const parseDomainValidationRecords = (certificate) => {
const options = certificate.DomainValidationOptions ?? [];
console.log('options: ', options);
if (options.length > 0 && options.every((opt) => opt.ResourceRecord?.Name)) {

@@ -97,3 +99,3 @@ const uniqueRecords = [...new Map(options.map((opt) => [opt.ResourceRecord?.Name, opt.ResourceRecord])).values()];

const changeId = await changeRecordSets(route53, 'UPSERT', validationRecords, HostedZoneId);
console.log(`All validation records changed succesfully for change id ${changeId}`);
console.log(`All validation records changed succesfully for change id ${changeId.replace('/change/', '')}`);
console.log(`Waiting for certificate ${CertificateArn} to validate`);

@@ -128,3 +130,3 @@ const result = await (0, client_acm_1.waitUntilCertificateValidated)({ client: acm, maxWaitTime: 300 }, { CertificateArn });

const changeId = await changeRecordSets(route53, 'DELETE', validationRecords, hostedZoneId);
console.log(`All validation records removed successfully for change id ${changeId}`);
console.log(`All validation records removed successfully for change id ${changeId.replace('/change/', '')}`);
}

@@ -141,3 +143,3 @@ catch (error) {

}
console.log(`Deleting certificate ${certificateArn}`);
console.log(`Deleting certificate ${certificateArn} from ACM`);
const deleteCertificateInput = {

@@ -205,2 +207,3 @@ CertificateArn: certificateArn,

case 'Create': {
console.log(`Requesting new certificate:\n${stringifyProperties(properties)}`);
const certificateArn = await requestCertificate(acm, route53, event.RequestId, properties);

@@ -220,2 +223,3 @@ if (properties.Tags && Object.entries(properties.Tags).length > 0) {

if (shouldRequestNew(parseProperties(event.OldResourceProperties), properties)) {
console.log(`Requesting new certificate due to change of properties:\n${stringifyProperties(properties)}`);
certificateArn = await requestCertificate(acm, route53, event.RequestId, properties);

@@ -236,2 +240,3 @@ }

if (properties.RemovalPolicy === 'destroy') {
console.log(`Deleting old certificate as per removal policy:\n${stringifyProperties(properties)}`);
await deleteCertificate(acm, route53, certificateArn, properties.HostedZoneId, properties.CleanupValidationRecords);

@@ -250,2 +255,2 @@ }

exports.handler = handler;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VydGlmaWNhdGUtcmVxdWVzdG9yLmxhbWJkYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jZXJ0aWZpY2F0ZS1yZXF1ZXN0b3IubGFtYmRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlDQUFnQztBQUNoQyxvREFZNEI7QUFDNUIsOERBUWlDO0FBQ2pDLG9EQUEwRjtBQWlCMUYsTUFBTSxLQUFLLEdBQUcsQ0FBQyxFQUFVLEVBQUUsRUFBRSxDQUFDLElBQUksT0FBTyxDQUFDLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxVQUFVLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUE7QUFFL0UsTUFBTSxZQUFZLEdBQUcsQ0FBSSxNQUFXLEVBQUUsTUFBVyxFQUFXLEVBQUU7SUFDNUQsSUFBSSxNQUFNLENBQUMsTUFBTSxLQUFLLE1BQU0sQ0FBQyxNQUFNO1FBQUUsT0FBTyxLQUFLLENBQUE7SUFDakQsT0FBTyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLEVBQ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XJuIHtcbiAgICAgICAgUGh5c2ljYWxSZXNvdXJjZUlkOiBjZXJ0aWZpY2F0ZUFybixcbiAgICAgICAgRGF0YToge1xuICAgICAgICAgIEFybjogY2VydGlmaWNhdGVBcm4sXG4gICAgICAgIH0sXG4gICAgICB9XG4gICAgfVxuICB9XG4gIHRocm93IG5ldyBFcnJvcihgSW52YWxpZCByZXF1ZXN0IHR5cGVgKVxufVxuIl19

@@ -184,4 +184,4 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
DnsValidatedCertificate[_a] = { fqn: "@trautonen/cdk-dns-validated-certificate.DnsValidatedCertificate", version: "0.0.9" };
DnsValidatedCertificate[_a] = { fqn: "@trautonen/cdk-dns-validated-certificate.DnsValidatedCertificate", version: "0.0.10" };
exports.DnsValidatedCertificate = DnsValidatedCertificate;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG5zLXZhbGlkYXRlZC1jZXJ0aWZpY2F0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kbnMtdmFsaWRhdGVkLWNlcnRpZmljYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQWtDO0FBRWxDLHlEQUF3RDtBQUN4RCwyQ0FBMEM7QUFDMUMsaURBQWdEO0FBRWhELGlFQUFnRTtBQUVoRSxxRkFBK0U7QUFtRy9FLE1BQU0sOEJBQThCLEdBQUcsaUNBQWlDLENBQUE7QUFDeEUsTUFBTSwwQkFBMEIsR0FBRyxzQ0FBc0MsQ0FBQTtBQUV6RTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBdUNHO0FBQ0gsTUFBYSx1QkFBd0IsU0FBUSxHQUFHLENBQUMsUUFBUTtJQXNCdkQ7Ozs7OztPQU1HO0lBQ0gsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBR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SXMke2lkfWAsIHtcbiAgICAgIGV4cHJlc3Npb246IGNkay5Gbi5jb25kaXRpb25FcXVhbHMoZmlyc3QsICcqJyksXG4gICAgfSlcbiAgICByZXR1cm4gY2RrLkZuLmNvbmRpdGlvbklmKGlzV2lsZGNhcmQubG9naWNhbElkLCBkb21haW5OYW1lLCBgKi4ke2RvbWFpbk5hbWV9YCkudG9TdHJpbmcoKVxuICB9XG5cbiAgcHJpdmF0ZSB2YWxpZGF0ZURvbWFpblRvSG9zdGVkWm9uZShkb21haW5OYW1lOiBzdHJpbmcsIGhvc3RlZFpvbmVOYW1lOiBzdHJpbmcpOiBzdHJpbmdbXSB7XG4gICAgaWYgKGNkay5Ub2tlbi5pc1VucmVzb2x2ZWQoZG9tYWluTmFtZSkgfHwgY2RrLlRva2VuLmlzVW5yZXNvbHZlZChob3N0ZWRab25lTmFtZSkpIHtcbiAgICAgIHJldHVybiBbXVxuICAgIH1cbiAgICBpZiAoZG9tYWluTmFtZSAhPT0gaG9zdGVkWm9uZU5hbWUgJiYgIWRvbWFpbk5hbWUuZW5kc1dpdGgoYC4ke2hvc3RlZFpvbmVOYW1lfWApKSB7XG4gICAgICByZXR1cm4gW2BIb3N0ZWQgem9uZSAke2hvc3RlZFpvbmVOYW1lfSBpcyBub3QgYXV0aG9yaXRhdGl2ZSBmb3IgY2VydGlmaWNhdGUgZG9tYWluIG5hbWUgJHtkb21haW5OYW1lfWBdXG4gICAgfVxuICAgIHJldHVybiBbXVxuICB9XG59XG4iXX0=

@@ -92,3 +92,3 @@ {

},
"version": "0.0.9",
"version": "0.0.10",
"jest": {

@@ -95,0 +95,0 @@ "testMatch": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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