Skip to content

Conversation

Vyom-Yadav
Copy link
Member

Bit ly has started adding ads between redirects, so we're moving away from bit ly.

Context: https://kubernetes.slack.com/archives/C2C40FMNF/p1739462854147559

/cc @BenTheElder @katcosgrove @fsmunoz @neoaggelos

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/apps Application management, code in apps/ sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 15, 2025
@Vyom-Yadav
Copy link
Member Author

/cc @xmudrii

Comment on lines 356 to 358
if ($major = "1" && $minor <= "33") {
return 301 https://bit.ly/k8s$major$minor-$remaining;
}
Copy link
Member Author

@Vyom-Yadav Vyom-Yadav May 21, 2025

Choose a reason for hiding this comment

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

Thinking about this again, this could allow for something similar to subdomain takeover or unknown redirect.

rel.k8s.io/v123/steal-your-passwords would redirect externally to https://bit.ly/k8s123-steal-your-passwords which isn't safe imo. (As the user would trust rel.k8s.io)

For maintaining backwards compatibility, we can have a generic links.md in sig-release which would have the generic URLs for previous release.

Copy link
Member

@BenTheElder BenTheElder May 21, 2025

Choose a reason for hiding this comment

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

We should also constrain the lower bound if we go this route.
EDIT: To whatever version we know has all these links already to avoid squatting

I think it might be best to directly include them here without the bit.ly link in the middle?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, having bit ly remains doesn't seem like a great solution. I can write a short script which can auto populate links.md for the older releases.

Updated this to do a redirect to sig-release only.

@Vyom-Yadav Vyom-Yadav force-pushed the replace-rt-bitly-links branch from 2ddb574 to cd89e89 Compare May 24, 2025 08:23
@Vyom-Yadav
Copy link
Member Author

ping @BenTheElder I addressed the review comment above.

@BenTheElder
Copy link
Member

@Vyom-Yadav sent me a nudge in slack, sorry I let this fall off my radar.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 17, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder, Vyom-Yadav

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 17, 2025
@k8s-ci-robot k8s-ci-robot merged commit 093cca6 into kubernetes:main Sep 17, 2025
3 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.35 milestone Sep 17, 2025
@BenTheElder
Copy link
Member

I think this still has to be manually deployed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/apps Application management, code in apps/ cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants