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

Added support for camerCase csp in app-config #24723

Merged
merged 3 commits into from May 13, 2024
Merged

Conversation

vinzscam
Copy link
Member

Hey, I just made a Pull Request!

This PR adds support for camelCase CSP directives in app-config.
Fixes #24716

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@vinzscam vinzscam requested review from a team as code owners May 10, 2024 12:52
@github-actions github-actions bot added documentation Improvements or additions to documentation area:catalog Related to the Catalog Project Area labels May 10, 2024
@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented May 10, 2024

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/backend-app-api packages/backend-app-api patch v0.7.3-next.1

@github-actions github-actions bot removed documentation Improvements or additions to documentation area:catalog Related to the Catalog Project Area labels May 10, 2024
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
@vinzscam vinzscam changed the title Fix csp camel case Added support for camerCase csp in app-config May 10, 2024
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
Copy link
Member

@Rugvip Rugvip left a comment

Choose a reason for hiding this comment

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

🎉 👍

@@ -47,7 +47,7 @@ describe('readHelmetOptions', () => {
csp: {
key: ['value'],
'img-src': false,
'script-src-attr': ['custom'],
scriptSrcAttr: ['custom'],
Copy link
Member

Choose a reason for hiding this comment

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

Could we keep a test that makes sure we still support the old format too? Maybe with a deprecation warning too?

Copy link
Member Author

Choose a reason for hiding this comment

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

ops good catch

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
Copy link
Member

@Rugvip Rugvip left a comment

Choose a reason for hiding this comment

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

Nice! 👍

Let's :shipit: 🎉

@Rugvip Rugvip merged commit e54d3b9 into master May 13, 2024
28 checks passed
@Rugvip Rugvip deleted the fix-csp-camelCase branch May 13, 2024 10:28
Copy link
Contributor

Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.27.0 release, scheduled for Tue, 14 May 2024.

Copy link
Contributor

Uffizzi Cluster pr-24723 was deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: Environment APP_CONFIG_ variables including hyphens are not valid identifiers
2 participants