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

remove pkgs.html because of dangerous eval #670

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented Oct 14, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • Tests for the changes have been added (for bug fixes / features)
  • What kind of change does this PR introduce?

deprecate

  • What is the current behavior?

pkgs.html could contain a potential security issue ( the use of eval).
This file apparently was intended only for development purposes and actually is not bundled in the build (with the distributed version of the agent going to http://127.0.0.1:8991/v2/docs/pkgs causes a 404). This is why it does not work in the stable version of the agent, and it’s not included in the build.
Furthermore, this file does not work as intended:
The DOM is not refreshed when a text is inserted in the textarea. This behavior makes this file completely useless and thus we should remove it.

  • What is the new behavior?

remove that file

  • Does this PR introduce a breaking change?

technically no, since this file is not included in the final build

  • Other information:

@umbynos umbynos requested a review from a team October 14, 2021 15:58
@umbynos umbynos self-assigned this Oct 14, 2021
@umbynos umbynos merged commit c9f790e into main Oct 18, 2021
@umbynos umbynos deleted the umbynos/remove_pkgs.html branch October 18, 2021 09:40
@per1234 per1234 added topic: security Related to the protection of user data topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels May 13, 2022
umbynos added a commit that referenced this pull request Aug 25, 2023
a lot of docs file were deleted because in #670 I forgot to run generate
Same
umbynos added a commit that referenced this pull request Aug 25, 2023
followup of #670 since generated doc files are not there anymore
umbynos added a commit that referenced this pull request Aug 25, 2023
a lot of docs file were deleted because in #670 I forgot to run generate
Same
umbynos added a commit that referenced this pull request Aug 25, 2023
followup of #670 since generated doc files are not there anymore
umbynos added a commit that referenced this pull request Aug 28, 2023
a lot of docs file were deleted because in #670 I forgot to run generate
Same
umbynos added a commit that referenced this pull request Aug 28, 2023
followup of #670 since generated doc files are not there anymore
umbynos added a commit that referenced this pull request Aug 28, 2023
* go get goa v3 & go mod tidy

* bump goa version used in design files (DSL)

* goa gen github.com/arduino/arduino-create-agent/design

a lot of docs file were deleted because in #670 I forgot to run generate
Same

* remove doc server

followup of #670 since generated doc files are not there anymore

* go mod tidy again

* bump to goa v3 also in v2 package

* fixes after bump to goa v3 (needs to be tested)

* update license cache

* apply suggestions by code-review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure topic: security Related to the protection of user data type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants