forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(appmesh): introduce the TlsClientPolicy and TlsValidation concepts (
aws#14782) This is the first part of the series for [issue#12733](aws#12733). For the breakdown on series, please refer to [this comment](aws#14782 (comment)). #### Collaborators @alexbrjo and @dfezzie. Thank you! #### REV: - Adding `TlsValidation` abstract class with factory methods for available certificate sources. - Converting client policy into an interface. In addition, it is renamed to `TlsClientPolicy` to better reflect its representation. #### Design Note: - Adding `TlsValidation` abstract class since it became a common property for TLS client policy and TLS listener after mTLS feature support. BREAKING CHANGE: the creation property `clientPolicy` in `VirtualNode` has been renamed to `tlsClientPolicy`, and its type changed to `TlsClientPolicy` - **appmesh**: the creation property `clientPolicy` in `VirtualGateway` has been renamed to `tlsClientPolicy`, and its type changed to `TlsClientPolicy` - **appmesh**: to create `TlsClientPolicy`, `validation` property must be defined. --- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
12 changed files
with
262 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { TlsValidation } from './tls-validation'; | ||
|
||
/** | ||
* Represents the properties needed to define client policy | ||
*/ | ||
export interface TlsClientPolicy { | ||
/** | ||
* Whether the policy is enforced. | ||
* | ||
* @default true | ||
*/ | ||
readonly enforce?: boolean; | ||
|
||
/** | ||
* TLS is enforced on the ports specified here. | ||
* If no ports are specified, TLS will be enforced on all the ports. | ||
* | ||
* @default - all ports | ||
*/ | ||
readonly ports?: number[]; | ||
|
||
/** | ||
* Represents the object for TLS validation context | ||
*/ | ||
readonly validation: TlsValidation; | ||
} |
Oops, something went wrong.