π§ AWS CloudFront Web Distribution uses outdated SSL protocols with Custom Origins - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS CloudFront Distribution
- π AWS CloudFront Origin - object.extracts.yaml
- π AWS CloudFront Cache Behavior - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:36.283973832Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 199 | βοΈ not(setOfText(['caWebDistribution']).contains(RecordType.DeveloperName)) | βοΈ null |
| π’ | test3 | βοΈ 299 | βοΈ CA10__AWS_CloudFront_Origins__r.has(INCOMPLIANT) | βοΈ null |
| π’ | test4 | βοΈ 399 | βοΈ CA10__AWS_CloudFront_Origins__r.has(COMPLIANT) | βοΈ null |
| π’ | test5 | βοΈ 500 | βοΈ otherwise | βοΈ null |
| π’ | test6 | βοΈ 500 | βοΈ otherwise | βοΈ null |
| π’ | test7 | βοΈ 500 | βοΈ otherwise | βοΈ null |
| π’ | test8 | βοΈ 499 | βοΈ CA10__AWS_CloudFront_Origins__r.hasNo(INAPPLICABLE) && CA10__AWS_CloudFront_Origins__r.hasNo(UNDETERMINED) | βοΈ null |
| π’ | test9 | βοΈ 499 | βοΈ CA10__AWS_CloudFront_Origins__r.hasNo(INAPPLICABLE) && CA10__AWS_CloudFront_Origins__r.hasNo(UNDETERMINED) | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/policy.yaml | 11A4E608F09C2C0947584059BB336B9B |
| Open | /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/prod.logic.yaml | 178738147C12B645AC21FFF973286091 |
| Open | /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/test-data.json | F062F41588F54EC55EE2E8A0B890DB15 |
| Open | /types/CA10__CaAwsOrigin2__c/object.extracts.yaml | A6C66AAA99283FB6BC69E96BB4DBAF65 |
| Open | /types/CA10__CaAwsCacheBehavior2__c/object.extracts.yaml | 9FCFD18140FB8C38265EB37003668054 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/cloudfront/distribution-uses-outdated-ssl-protocols/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsDistribution__c"
importExtracts:
- file: "/types/CA10__CaAwsCacheBehavior2__c/object.extracts.yaml"
testData:
- file: "test-data.json"
recordTypes:
- "caWebDistribution"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The distribution has at least one custom origin that uses the deprecated SSL 3.0 protocol."
remediationMessage: "Update the minimum origin SSL protocol to TLSv1.2 or later."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10__AWS_CloudFront_Origins__r"
- status: "INCOMPLIANT"
currentStateMessage: "The distribution has at least one custom origin that uses the outdated TLS protocols."
remediationMessage: "Update the minimum origin SSL protocol to TLSv1.2 or later."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__AWS_CloudFront_Origins__r"
- status: "UNDETERMINED"
currentStateMessage: "The distribution doesn't have any origins in the CMDB."
check:
AND:
args:
- RELATED_LIST_HAS_NO:
status: "INAPPLICABLE"
relationshipName: "CA10__AWS_CloudFront_Origins__r"
- RELATED_LIST_HAS_NO:
status: "UNDETERMINED"
relationshipName: "CA10__AWS_CloudFront_Origins__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "All custom origins for this distribution are configured to use\
\ TLSv1.2 or later SSL protocols (if applicable)."
relatedLists:
- relationshipName: "CA10__AWS_CloudFront_Origins__r"
importExtracts:
- file: "/types/CA10__CaAwsOrigin2__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This is not a custom origin."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__configProtocolPolicy__c"
- status: "INAPPLICABLE"
currentStateMessage: "The protocol policy for this custom origin is http-only."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__configProtocolPolicy__c"
right:
TEXT: "http-only"
- status: "INAPPLICABLE"
currentStateMessage: "This origin is an S3 bucket configured for static website hosting,\
\ which does not support HTTPS."
check:
CONTAINS:
arg:
EXTRACT: "CA10__domainName__c"
search:
TEXT: "s3-website"
- status: "INCOMPLIANT"
currentStateMessage: "The distribution allows the deprecated SSL 3.0 protocol."
remediationMessage: "Use TLSv1.2 or later for HTTPS communication to the origin."
check:
CONTAINS:
arg:
EXTRACT: "caSetFrom__customOriginConfigOriginSslProtocols__c"
search:
TEXT: "SSLv3"
# This condition is set to COMPLIANT only to make it easier to distinguish from INCOMPLIANT in the main body of the policy
- status: "COMPLIANT"
currentStateMessage: "The distribution allows the outdated TLS protocols."
remediationMessage: "Use TLSv1.2 or later for HTTPS communication to the origin."
check:
CONTAINS_ANY:
arg:
EXTRACT: "caSetFrom__customOriginConfigOriginSslProtocols__c"
search:
SET:
itemType: TEXT
items:
- "TLSv1.1"
- "TLSv1"
# This is set to UNDETERMINED since COMPLIANT status is already reserved for the purpose above
otherwise:
status: "UNDETERMINED"
currentStateMessage: "The Minimum Origin SSL protocol enforces TLSv1.2 or later."