Skip to content

Add WalkMe SRI #711

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

Closed
wants to merge 2 commits into from
Closed

Add WalkMe SRI #711

wants to merge 2 commits into from

Conversation

paco-walkme
Copy link
Contributor

Seeing that WalkMe is a dynamic 3rd part library, it is our duty to protect our customers by ensuring all code injected by our CDNs is walkme code and did not originate from another source.

To achieve this we will utilize the security feature Sub-resource Integrity (SRI).

New functionallity is enabled by a new Option field (SHA) in which we will be able to include the SHA that walkme calculates and can be visible from the snippet script.

  • Testing completed successfully

paco-walkme and others added 2 commits December 7, 2022 11:51
@@ -64,37 +80,70 @@ describe('WalkMe', function() {
analytics.spy(walkme, 'load');
});

it('should load walkme test lib', function(done) {
it.skip('should load walkme test lib', function(done) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@paco-walkme was this intended to be skipped? I checked it out locally and this test is failing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danieljackins hope you can help me with this one. If you notice the reason for failure is that the analytics has been initialized, the error comes from some part of internal testing. If one un-skip this test and skips the next one, you will see how now this test is passing. But with both at the same time.

I search over other integration and saw that others have added .skip on similar test, when the integratino is loaded twice with different parameters.

I belive I'm reseting the state properly in the global afterEach and i dont have more ideas how to fix it within WalkMe test. any advice on how to solve this will be greatly appreciated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @paco-walkme,

I think the problem is that walkme.reset() doesn't reset, the window._walkmeInternals.Segment variable so it thinks it's still loaded. I fixed the unit test in this PR I created to track this upstream: #718

@paco-walkme paco-walkme closed this by deleting the head repository Jul 23, 2023
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.

2 participants