Skip to content

Add safe helper method for accessing protected storage - #1729

Merged
James Newton-King (JamesNK) merged 1 commit into
mainfrom
jamesnk/safe-dataprotection
Jan 22, 2024
Merged

James Newton-King (JamesNK) merged 1 commit into
mainfrom
jamesnk/safe-dataprotection

Conversation

@JamesNK

@JamesNK James Newton-King (JamesNK) commented Jan 20, 2024 •

Copy link
Copy Markdown
Member

Data protection keys used by Aspire dashboard could change. This is a problem because values protected by data protection are set in browser local storage and persisted.

If keys change, then we don't want to throw errors trying to access previously set values in browser local storage.

If a crypto error occurs then return default (non-success).

Microsoft Reviewers: Open in CodeFlow

@JamesNK James Newton-King (JamesNK) changed the title Add safe helper methods for accessing protected storage Add safe helper method for accessing protected storage Jan 20, 2024

@kvenkatrajan kvenkatrajan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved

@JamesNK
James Newton-King (JamesNK) deleted the jamesnk/safe-dataprotection branch January 22, 2024 01:19
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants