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

safeUrl() Security refactor #203

Merged
merged 7 commits into from
Apr 29, 2024
Merged

safeUrl() Security refactor #203

merged 7 commits into from
Apr 29, 2024

Conversation

blackfalcon
Copy link
Member

@blackfalcon blackfalcon commented Mar 14, 2024

Alaska Airlines Pull Request

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Resolves: #202

Summary:

Please summarize the scope of the changes you have submitted, what the intent of the work is, and anything that describes the before/after state of the project.

This function was updated post-security review in training with @jmanico
The goal of this refactor is to be exclusionary by default as well as tighten up the code ergonomics.

See this POV Commit per this Discussion
https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/release-workflow/pre-releases.md

Type of change:

Please delete options that are not relevant.

  • New capability
  • Revision of an existing capability
  • Infrastructure change (automation, etc.)
  • Other (please elaborate)

Checklist:

  • My update follows the CONTRIBUTING guidelines of this project
  • I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.

Thank you for your submission!

-- Auro Design System Team

@blackfalcon blackfalcon self-assigned this Mar 14, 2024
@blackfalcon blackfalcon requested a review from a team as a code owner March 14, 2024 02:21
@blackfalcon blackfalcon linked an issue Mar 14, 2024 that may be closed by this pull request
src/component-base.mjs Fixed Show fixed Hide fixed
@blackfalcon blackfalcon marked this pull request as draft March 14, 2024 02:25
@blackfalcon blackfalcon marked this pull request as ready for review March 21, 2024 05:04
src/component-base.mjs Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
docs/partials/index.md Show resolved Hide resolved
@blackfalcon blackfalcon force-pushed the dsande/securityRefactor/202 branch 2 times, most recently from 11af03c to 55a0f3c Compare April 2, 2024 18:18
@blackfalcon blackfalcon force-pushed the dsande/securityRefactor/202 branch 3 times, most recently from 4b34c6d to 9efd751 Compare April 19, 2024 22:40
This function was updated post security review in training with @jmanico

The goal of this refactor is to be exclusionary by default as well
tighten up the code ergonomics.

Additional updates include refactoring JSDoc annotations.

Changes to be committed:
modified:   src/component-base.mjs
These test refactors are in response to the safeUrl() function updates.

Changes to be committed:
modified:   test/auro-hyperlink.test.js
This commit adds a new example to illustrate unsupported href types

Changes to be committed:
new file:   apiExamples/nonSupported.html
modified:   docs/partials/index.md
This commit updates the targetIcon() and safeUrl() functions to address
reported code scanning issues.

* Incomplete URL substring sanitization
* Incomplete URL scheme check

Changes to be committed:
modified:   src/component-base.mjs
Changes to be committed:
modified:   package-lock.json
modified:   package.json
This commit updates the package.json and the testPublish.yml per the
discussion of addressing maintaining fast pre-commit build and test
scenarios and having a robust remote testing of code.

Changes to be committed:
modified:   .github/workflows/testPublish.yml
modified:   package.json
This commit updates the functional documentation within the code.
Refactor of 624ba72 commit.

Changes to be committed:
modified:   src/auro-hyperlink.js
modified:   src/component-base.mjs
@blackfalcon blackfalcon merged commit 1d7cbf2 into main Apr 29, 2024
6 checks passed
@blackfalcon blackfalcon deleted the dsande/securityRefactor/202 branch April 29, 2024 23:53
@blackfalcon
Copy link
Member Author

🎉 This PR is included in version 3.5.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@blackfalcon blackfalcon added the released Completed work has been released label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Completed work has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor security against dangerous URL
2 participants