Skip to main content

Collections

You can create or update a collection in the "Collections" tab in Juno's console under the storage view.


Configuration

Each collection has a set of configurable options that define its behavior and limitations:

OptionMandatoryDescription
KeyYesA unique identifier for the collection. The key that you will use in your code to interact with a particular collection.
Read permissionYesDefines who can read documents in the collection. See Permissions below.
Write permissionYesDefines who can create, update, or delete documents. See Permissions below.
MemoryYesSpecifies whether the collection uses heap or stable memory. This setting is permanent and cannot be changed after creation. The default is stable memory. For more information, see the related documentation.
Max changes per userNoLimits the number of documents a single user can create, update, or delete in the collection. This helps maintain fair resource distribution across users.
Max sizeNoSets an optional limit (in bytes) on the maximum size of individual assets that can be uploaded to a collection.
Max updates per minuteNoLimits the number of creation, update and delete operations per minute to prevent excessive updates.
Immutable permissionsNoIf enabled, read and write permissions cannot be modified after creation.

Permissions

Permissions define who can read and write assets in a collection. Writing includes creating (uploading), updating, and deleting assets.

caution

Assets are publicly accessible on the Internet regardless of the permission schema. The rules are only applied when reading or writing the data through the library.

Permission TypeDescription
publicAnyone can read or write assets in the collection.
privateOnly the creator (owner) of the asset can read or write to it. However, note that since satellite controllers manage the underlying infrastructure, they have the technical ability to modify access rules by changing its source code.
managedThe owner of an asset and the controllers of the satellite can read or write to it in the collection.
controllersOnly satellite controllers can read or write any asset in the collection.

If not set to immutable, you can modify the permissions at any time, and the changes will take effect immediately.

tip

Any collection with read permissions set to public, managed or controllers will allow the controllers to view its content in the console under the storage view.