Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cache config generation for MIDs with a cache parent and HTTPS origin #6580

Merged

Conversation

rob05c
Copy link
Member

@rob05c rob05c commented Feb 23, 2022

Fixes cache config remap.config generation when a server is MID type
with other caches as parents in a Topology, and HTTPS origins.

The bug was inserting the Origin's URI verbatim in the remap target,
without changing HTTPS schemes to HTTP for the internal CDN request.

This bug existed for ages, and was fixed in most other scenarios,
but not this exact one.

Note the corresponding parent.config line correctly expects http/80.
The bug is only in remap.config generation.

Includes tests.
Includes changelog.
No docs, no interface change.

Which Traffic Control components are affected by this PR?

  • Traffic Control Cache Config (t3c, formerly ORT)

What is the best way to verify this PR?

Run tests. Create a Topology with a MID-type server, with other caches as parents, and assign it to a Delivery Service with an HTTPS origin. Verify generated remap.config has an http target, not https.

If this is a bugfix, which Traffic Control versions contained the bug?

Bug has existed forever.

PR submission checklist

@rob05c rob05c added bug something isn't working as intended cache-config Cache config generation labels Feb 23, 2022
Fixes cache config remap.config generation when a server is MID type
with other caches as parents in a Topology, and HTTPS origins.

The bug was inserting the Origin's URI verbatim in the remap target,
without changing HTTPS schemes to HTTP for the internal CDN request.

This bug existed for ages, and was fixed in most other scenarios,
but not this exact one.
@rob05c rob05c force-pushed the fix-t3c-mid-cache-parent-https-ds-remap branch from 50b2eb0 to 0b4b181 Compare February 23, 2022 21:45
@rob05c rob05c changed the title Fix t3c gen for MIDs with parent and HTTPS origin Fix cache config generation for MIDs with parent and HTTPS origin Feb 23, 2022
@rob05c rob05c changed the title Fix cache config generation for MIDs with parent and HTTPS origin Fix cache config generation for MIDs with a cache parent and HTTPS origin Feb 23, 2022
Copy link
Contributor

@traeak traeak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look fine.

@rawlinp rawlinp merged commit a47eadf into apache:master Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended cache-config Cache config generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants