Cookie Consent by Free Privacy Policy Generator 📌 Not all storage is created equal: introducing Storage Buckets

🏠 Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeiträge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden Überblick über die wichtigsten Aspekte der IT-Sicherheit in einer sich ständig verändernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch übersetzen, erst Englisch auswählen dann wieder Deutsch!

Google Android Playstore Download Button für Team IT Security



📚 Not all storage is created equal: introducing Storage Buckets


💡 Newskategorie: Programmierung
🔗 Quelle: developer.chrome.com

The Storage Standard defines an API for persistent storage and quota estimates, and the platform storage architecture. It's available behind the #enable-experimental-web-platform-features flag in Chromium 106, and we'd love your feedback.

What problem does the storage standard aim to solve?

Traditionally, as the user runs out of storage space on their device, the data stored with APIs like IndexedDB or localStorage gets lost without the user being able to intervene. A way to make storage persistent is through invoking the persist() method of the StorageManager interface. It simultaneously requests the end user for permission and changes the storage to be persistent once granted:

const persisted = await navigator.storage.persist();
if (persisted) {
/* Storage will not be cleared except by explicit user action. */
}

This method of asking for storage to be persisted is all or nothing. There's no way to express more fine-grained persistence needs. It's all one storage bucket.

The Storage Buckets proposal

The core idea of the Storage Buckets proposal is granting sites the ability to create multiple storage buckets, where the browser may choose to delete each bucket independently of other buckets. This allows developers to specify eviction prioritization to make sure the most valuable data doesn't get deleted.

Use case example

To illustrate where storage buckets would come in handy, imagine an email application. It would be unforgivable if the app lost the user's unsent drafts that only exist on the client. In contrast, if they are stored on a server, the user would probably be fine with some of their oldest inbox emails to be removed from the client if their browser is under heavy storage pressure.

Email app interface
Email app with separate storage buckets for inbox and drafts. (For illustrative purposes only, this does not necessarily reflect how Gmail works.)

Using the Storage Buckets API

This article only teases the main features of the Storage Buckets API. For a full reference of what's possible with the API, see the Storage Buckets proposal.

Creating a new storage bucket

A new storage bucket can be created with the open() method on the StorageBucketManager interface.

// Create a storage bucket for emails that are synchronized with the
// server.
const inboxBucket = await navigator.storageBuckets.open('inbox');

Creating a persisted new storage bucket

To ensure the storage bucket is persisted, you can pass durability and persisted option arguments to the open() method:

  • persisted determines if the storage bucket should be persisted or not. The allowed values are either false (default) or true.

  • durability provides a hint to the browser that helps it trade off write performance against a reduced risk of data loss in the event of power failures. The allowed values are 'relaxed' (default) or 'strict':

    • 'strict' buckets attempt to minimize the risk of data loss on power failure. This may come at the cost of reduced performance, meaning that writes may take longer to complete, might impact overall system performance, may consume more battery power, and may wear out the storage device faster.
    • 'relaxed' buckets may "forget" writes that were completed in the last few seconds, when a power loss occurs. In return, writing data to these buckets may have better performance characteristics, and may allow a battery charge to last longer, and may result in longer storage device lifetime. Also, power failures will not lead to data corruption at a higher rate than for 'strict' buckets.
// Create a storage bucket for email drafts that only exist on the client.
const draftsBucket = await navigator.storageBuckets.open('drafts', {
durability: 'strict', // Or `'relaxed'`.
persisted: true, // Or `false`.
});

Accessing the storage APIs from a storage bucket

Each storage bucket is associated with storage APIs, for example, IndexedDB, the Cache interface, or the File interface. These storage APIs work as per the usual, just that the entry point is from the StorageBucket interface, for example, StorageBucket.indexedDB.

const inboxDb = await new Promise(resolve => {
const request = inboxBucket.indexedDB.open('messages');
request.onupgradeneeded = () => { /* migration code */ };
request.onsuccess = () => resolve(request.result);
request.onerror = () => reject(request.error);
});

Feedback

The Chrome team wants to hear what you think of storage buckets. Your feedback on the Storage Buckets proposal is warmly welcomed. Please provide feedback by commenting on existing or filing new GitHub Issues.

Useful resources

...



📌 Not all storage is created equal: introducing Storage Buckets


📈 81.92 Punkte

📌 Does Not Equal Sign – How to Type The Not Equal Symbol ( ≠ )


📈 46.92 Punkte

📌 All Cybersecurity Investments Are Not Created Equal


📈 41.33 Punkte

📌 Security Performance in the Cloud: Not All Solutions Are Created Equal


📈 41.33 Punkte

📌 Not All Sandboxes Are Created Equal


📈 41.33 Punkte

📌 Not All Context in Threat Intelligence is Created Equal


📈 41.33 Punkte

📌 Not all Ethernet NICs are Created Equal - Trying to Capture Invalid Ethernet Frames, (Fri, Mar 13th)


📈 41.33 Punkte

📌 Not all data is created equal: Protecting our digital journeys


📈 41.33 Punkte

📌 Cisco: All Intelligence is Not Created Equal


📈 41.33 Punkte

📌 All CVEs Are Not Created Equal


📈 41.33 Punkte

📌 Not all Ethernet NICs are Created Equal - Trying to Capture Invalid Ethernet Frames


📈 41.33 Punkte

📌 SMBs vs. large enterprises: Not all compromises are created equal


📈 41.33 Punkte

📌 Gaining an AI advantage: Not all AIs are created equal


📈 41.33 Punkte

📌 buckets.grayhatwarfare.com - open s3 buckets search engine is updated!


📈 36.4 Punkte

📌 Equal Rights Center Sues Uber For Denying Equal Access To People Who Use Wheelchairs


📈 36.09 Punkte

📌 Every iPhone X Is Not Created Equal


📈 36.02 Punkte

📌 The Internet Accessibility Is Not Equal For All, What Can We Do?


📈 28.77 Punkte

📌 All your Base are...nearly equal when it comes to AV evasion, but 64-bit executables are not, (Thu, May 27th)


📈 28.77 Punkte

📌 A viral TikTok reminds us that the chap who created Xbox also created bread from 4,500-year-old Egyptian yeast


📈 25.13 Punkte

📌 Cloud Data Exfiltration via GCP Storage Buckets and How to Prevent It


📈 24.25 Punkte

📌 Cloud Security Expert Re: Enterprise Cloud Giant Cloudera Leaks Private Credentials Through Public Storage Buckets


📈 24.25 Punkte

📌 ClearDATA expands SaaS platform to automatically detect PHI in multi-cloud storage buckets


📈 24.25 Punkte

📌 Storage Buckets origin trial available


📈 24.25 Punkte

📌 New in Chrome 122: Storage Buckets API, DevTools Performance panel updates, and more!


📈 24.25 Punkte

📌 Storage Buckets API #shorts


📈 24.25 Punkte

📌 Tim Cook on China: Data storage doesn't equal data access


📈 24.09 Punkte

📌 Google Created Faster Storage Encryption for All Low-End Devices


📈 23.92 Punkte

📌 Aw, not you too, Verizon: US telco joins list of leaky AWS S3 buckets


📈 23.61 Punkte

📌 You know all those stories of leaky cloud buckets taken offline? Well, some may still be there, just badly hidden


📈 23.51 Punkte

📌 Amazon S3 to apply security best practices for all new buckets


📈 23.51 Punkte

📌 Block public access on all your S3 Buckets easily


📈 23.51 Punkte

📌 CVSS scores do not equal risk


📈 23.46 Punkte

📌 Open Source Does Not Equal Secure


📈 23.46 Punkte











matomo