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

@alma-cdk/origin-verify

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alma-cdk/origin-verify - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

24

API.md

@@ -93,3 +93,3 @@ # API Reference <a name="API Reference" id="api-reference"></a>

| <code><a href="#@alma-cdk/origin-verify.OriginVerify.property.headerName">headerName</a></code> | <code>string</code> | CloudFront Origin Custom Header name used in the WAFv2 WebACL verification. |
| <code><a href="#@alma-cdk/origin-verify.OriginVerify.property.secretValue">secretValue</a></code> | <code>aws-cdk-lib.SecretValue</code> | Secret Value used as the CloudFront Origin Custom Header value. |
| <code><a href="#@alma-cdk/origin-verify.OriginVerify.property.headerValue">headerValue</a></code> | <code>string</code> | Secret Value used as the CloudFront Origin Custom Header value. |

@@ -123,14 +123,12 @@ ---

##### `secretValue`<sup>Required</sup> <a name="secretValue" id="@alma-cdk/origin-verify.OriginVerify.property.secretValue"></a>
##### `headerValue`<sup>Required</sup> <a name="headerValue" id="@alma-cdk/origin-verify.OriginVerify.property.headerValue"></a>
```typescript
public readonly secretValue: SecretValue;
public readonly headerValue: string;
```
- *Type:* aws-cdk-lib.SecretValue
- *Type:* string
Secret Value used as the CloudFront Origin Custom Header value.
Obtain the actual value with `toString()` method.
---

@@ -141,3 +139,3 @@

```typescript
secretValue.toString()
'xxxxEXAMPLESECRET'
```

@@ -293,3 +291,3 @@

| <code><a href="#@alma-cdk/origin-verify.IVerification.property.headerName">headerName</a></code> | <code>string</code> | CloudFront Origin Custom Header name used in the WAFv2 WebACL verification. |
| <code><a href="#@alma-cdk/origin-verify.IVerification.property.secretValue">secretValue</a></code> | <code>aws-cdk-lib.SecretValue</code> | Secret Value used as the CloudFront Origin Custom Header value. |
| <code><a href="#@alma-cdk/origin-verify.IVerification.property.headerValue">headerValue</a></code> | <code>string</code> | Secret Value used as the CloudFront Origin Custom Header value. |

@@ -311,14 +309,12 @@ ---

##### `secretValue`<sup>Required</sup> <a name="secretValue" id="@alma-cdk/origin-verify.IVerification.property.secretValue"></a>
##### `headerValue`<sup>Required</sup> <a name="headerValue" id="@alma-cdk/origin-verify.IVerification.property.headerValue"></a>
```typescript
public readonly secretValue: SecretValue;
public readonly headerValue: string;
```
- *Type:* aws-cdk-lib.SecretValue
- *Type:* string
Secret Value used as the CloudFront Origin Custom Header value.
Obtain the actual value with `toString()` method.
---

@@ -329,5 +325,5 @@

```typescript
secretValue.toString()
'xxxxEXAMPLESECRET'
```
### [0.0.8](https://github.com/alma-cdk/origin-verify/compare/v0.0.7...v0.0.8) (2022-05-16)
### [0.0.9](https://github.com/alma-cdk/origin-verify/compare/v0.0.8...v0.0.9) (2022-05-16)

@@ -7,3 +7,2 @@

* upgrade CDK minimum version to 2.24.1 to support unsafeUnwrap ([d590697](https://github.com/alma-cdk/origin-verify/commit/d59069796388da4ea53b818694c3a4e180100eb4))
* use unsafeUnwrap to assign the secret to WebACL rule ([893c9fc](https://github.com/alma-cdk/origin-verify/commit/893c9fc07b69de9c9338ec7d98fa6547721d1961))
* expose the headerValue directly ([6636998](https://github.com/alma-cdk/origin-verify/commit/663699879c64faf27ee4576952dbdcb5c033bd61))

@@ -1,2 +0,1 @@

import { ISecret } from 'aws-cdk-lib/aws-secretsmanager';
import { Construct } from 'constructs';

@@ -21,8 +20,7 @@ import { IVerification } from './contract';

* Secret Value used as the CloudFront Origin Custom Header value.
* Obtain the actual value with `toString()` method.
*
* @example
* secretValue.toString()
* 'xxxxEXAMPLESECRET'
*/
readonly secretValue: ISecret['secretValue'];
readonly headerValue: string;
/**

@@ -29,0 +27,0 @@ * Associates an origin with WAFv2 WebACL to verify traffic contains specific

@@ -46,6 +46,6 @@ "use strict";

headerName: props.headerName || OriginVerify.OriginVerifyHeader,
secretValue: secret.secretValue,
headerValue: secret.secretValue.unsafeUnwrap(),
};
this.headerName = verifyHeader.headerName;
this.secretValue = verifyHeader.secretValue;
this.headerValue = verifyHeader.headerValue;
const acl = this.defineAcl(verifyHeader, props);

@@ -105,5 +105,5 @@ this.associate(acl, this.resolveOriginArn(props.origin));

},
// Use of unsafeUnwrap allowed as we must be able to assign the secret
// Use of unsafeUnwrap allowed as we must be able to assign the secret
// value into WebACL rule (and that rule stays within AWS Account).
searchString: header.secretValue.unsafeUnwrap(),
searchString: header.headerValue,
positionalConstraint: 'EXACTLY',

@@ -155,5 +155,5 @@ textTransformations: [

_a = JSII_RTTI_SYMBOL_1;
OriginVerify[_a] = { fqn: "@alma-cdk/origin-verify.OriginVerify", version: "0.0.8" };
OriginVerify[_a] = { fqn: "@alma-cdk/origin-verify.OriginVerify", version: "0.0.9" };
/** Origin Request Header Default Name */
OriginVerify.OriginVerifyHeader = 'x-origin-verify';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RydWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnN0cnVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZDQUFvQztBQUdwQyx1RUFBaUU7QUFDakUscURBQXdFO0FBQ3hFLDJDQUF1QztBQUV2QyxzQ0FBd0M7QUFHeEM7OztHQUdHO0FBQ0gsTUFBYSxZQUFhLFNBQVEsc0JBQVM7SUFzQnpDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztPQXVCRztJQUNILFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBd0I7UUFDaEUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQix3Q0FBd0M7UUFDeEMsTUFBTSxNQUFNLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDaEQsTUFBTSxZQUFZLEdBQWtCO1lBQ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nZS5yZXN0QXBpLnJlc3RBcGlJZDtcbiAgICBjb25zdCBzdGFnZU5hbWUgPSBzdGFnZS5zdGFnZU5hbWU7XG4gICAgcmV0dXJuIGBhcm46YXdzOmFwaWdhdGV3YXk6JHtyZWdpb259OjovcmVzdGFwaXMvJHthcGlJZH0vc3RhZ2VzLyR7c3RhZ2VOYW1lfWA7XG4gIH1cblxufVxuXG4iXX0=

@@ -1,2 +0,1 @@

import { ISecret } from 'aws-cdk-lib/aws-secretsmanager';
/**

@@ -15,8 +14,7 @@ * Interface describing the "contract" of return values from the constructor.

* Secret Value used as the CloudFront Origin Custom Header value.
* Obtain the actual value with `toString()` method.
*
* @example
* secretValue.toString()
* 'xxxxEXAMPLESECRET'
*/
readonly secretValue: ISecret['secretValue'];
readonly headerValue: string;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29udHJhY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElTZWNyZXQgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3Mtc2VjcmV0c21hbmFnZXInO1xuXG4vKipcbiAqIEludGVyZmFjZSBkZXNjcmliaW5nIHRoZSBcImNvbnRyYWN0XCIgb2YgcmV0dXJuIHZhbHVlcyBmcm9tIHRoZSBjb25zdHJ1Y3Rvci5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBJVmVyaWZpY2F0aW9uIHtcblxuICAvKipcbiAgICogQ2xvdWRGcm9udCBPcmlnaW4gQ3VzdG9tIEhlYWRlciBuYW1lIHVzZWQgaW4gdGhlIFdBRnYyIFdlYkFDTCB2ZXJpZmljYXRpb24uXG4gICAqXG4gICAqIEBkZWZhdWx0XG4gICAqICd4LW9yaWdpbi12ZXJpZnknXG4g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tcGxlXG4gICAqICd4eHh4RVhBTVBMRVNFQ1JFVCdcbiAgICovXG4gIHJlYWRvbmx5IGhlYWRlclZhbHVlOiBzdHJpbmc7XG59Il19

@@ -80,3 +80,3 @@ {

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

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

@@ -50,3 +50,3 @@ <div align="center">

customHeaders: {
[verification.headerName]: verification.secretValue.toString(),
[verification.headerName]: verification.headerValue,
},

@@ -53,0 +53,0 @@ }) },

@@ -1,1 +0,1 @@

v0.0.8
v0.0.9

@@ -1,1 +0,1 @@

0.0.8
0.0.9

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