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 siteinfo step to release #1313

Merged
merged 2 commits into from
Feb 22, 2022
Merged

Conversation

gavinr
Copy link
Contributor

@gavinr gavinr commented Feb 14, 2022

Adds an additional step to the release bash script that generates the ssri integrity string and saves it (and the lib version number) into a JSON file in the root of the repository (siteData.json). This is generating the integrity string based on the built file on disk (as opposed to reading it from NPM) for the security/integrity of the process.

We will do a similar thing in all the related repositories (esri-leaflet-geocoder, esri-leaflet-vector, etc) so that it will replace the functionality that https://github.com/Esri/esri-leaflet-doc/blob/master/data/integrity.js is currently providing.

I got the command from MDN: Subresource Integrity. It does require OpenSSL to be installed on the build machine but I think that's fairly common/standard.

Copy link
Contributor

@patrickarlt patrickarlt left a comment

Choose a reason for hiding this comment

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

LGTM but do you want to write the integrity file to dist/siteData.json so it becomes part of the release files?

@gavinr
Copy link
Contributor Author

gavinr commented Feb 22, 2022

Thanks @patrickarlt. Sounds good - done.

@gavinr gavinr merged commit 76aebbf into Esri:master Feb 22, 2022
@gavinr gavinr deleted the siteinfo-generator-single branch February 22, 2022 23:09
gavinr pushed a commit that referenced this pull request Feb 23, 2022
add siteData.json as an allowed file when publishing to NPM. Follow-up to #1313
gavinr pushed a commit to Esri/esri-leaflet-cluster that referenced this pull request Feb 25, 2022
gavinr pushed a commit to gavinr/esri-leaflet-geocoder that referenced this pull request Feb 28, 2022
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
* added siteinfo step to release

* save to dist
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
add siteData.json as an allowed file when publishing to NPM. Follow-up to Esri#1313
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
* added siteinfo step to release

* save to dist
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
add siteData.json as an allowed file when publishing to NPM. Follow-up to Esri#1313
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.

3 participants