Repository navigation
site: Update Hugo from v0.160.1 to v0.165.0 - #23652
Conversation
|
|
|
Can one of the admins verify this patch? |
|
Hi @rishiraj38. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@rishiraj38 Thanks! can you run the hugo updater locally and add a commit updating it? |
Done. I ran the Hugo updater locally and added a commit bumping Hugo from v0.160.1 to v0.165.0. The Netlify deploy preview should validate the fix now. |
|
@rishiraj38 Change looks good, and the netlify test pass. To complete this please add proper commit messages - explain the problem and solution. |
Hugo v0.162.0 introduced a security.allowContent policy that blocks text/html content files by default. The minikube site has 138 .html content files (landing page, leaderboards), so any Hugo version bump past v0.162.0 breaks Netlify deploys with: access denied: "text/html" is not whitelisted in policy "security.allowContent" Fix by adding [security] allowContent = ['.*'] to site/config.toml to explicitly allow all content types. This is safe since all content is trusted, hand-authored, and reviewed via PRs. Also add the 'label' key alongside deprecated 'languageName' for Hugo >= 0.158.0 compatibility. Signed-off-by: Rishi Raj <[email protected]>
Run 'make update-hugo-version' to bump Hugo to the latest stable release. This exercises the allowContent security fix from the previous commit, ensuring Netlify deploys succeed with Hugo >= 0.162.0. Signed-off-by: Rishi Raj <[email protected]>
7087737 to
b7b3054
Compare
Updated both commit messages. Thanks! |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nirs, rishiraj38 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Site only change, integration tests not needed. Triggered because netlify.toml is not under site/. |
Hugo v0.162.0 introduced a
security.allowContentpolicy that blockstext/htmlcontent files by default. Our site has 138.htmlcontent files (landing page, leaderboards), causing any Hugo version bump past v0.162.0 to fail Netlify deploys.Add
[security] allowContent = ['.*']tosite/config.toml. Also addlabelkey for Hugo >= 0.158.0 deprecation oflanguageName.Fixes #23651