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

feat(webchat): local storage encryption #377

Merged
merged 5 commits into from
Feb 18, 2022
Merged

Conversation

samuelmasse
Copy link
Contributor

@samuelmasse samuelmasse commented Feb 18, 2022

Closes DEV-2363

Copy link
Contributor

@laurentlp laurentlp left a comment

Choose a reason for hiding this comment

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

LGTM! Simply enough, nice work!!!! 💪

Also, as a note, when you'll be integrating the components from ui-shared-lite, there is a window.BP_STORAGE class that we use in the webchat to access the local or session storage. I think we should deprecate this class and simply use the helpers you edited in the socket.ts file and make put them in their own file. What do you think?

@@ -228,6 +228,8 @@ export interface Config {
chatId?: string
/** CSS class to be applied to iframe */
className?: string
/** Key used to encrypt data in the localStorage */
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add that the key is auto-generated for better security and that I user shouldn't provide one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mean it's auto-generated from the outside, but the webchat itself doesn't generate that key

@linear
Copy link

linear bot commented Feb 18, 2022

@samuelmasse samuelmasse merged commit be16c91 into master Feb 18, 2022
@samuelmasse samuelmasse deleted the sm-webchat-encryption branch February 18, 2022 18:00
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.

None yet

2 participants