- Print
- DarkLight
Configure ShardSecure with Backblaze B2
- Print
- DarkLight
ShardSecure is a simple, reliable, and affordable object store and provides a unique focus on securing data on back-end cloud infrastructure. You can configure ShardSecure with Backblaze B2 Cloud Storage.
Enable Backblaze B2
Before you begin: You must have a Backblaze B2 Cloud Storage account. You can sign up here. If you already have a Backblaze account and the left navigation menu contains a B2 Cloud Storage section, your account is already enabled for Backblaze B2.
- Sign in to your Backblaze account.
- In the left navigation menu under Account, click My Settings.
- Under Enabled Products, select the checkbox to enable B2 Cloud Storage.
- Review the Terms and Conditions, and click OK to accept them.
Create a Bucket
ShardSecure uses Backblaze B2 buckets to distribute and store data. Backblaze recommends that you create at least three buckets to ensure data distribution.
You can enable Object Lock in the bucket within ShardSecure. You do not have to enable it in the Backblaze web UI because ShardSecure is managing the bucket.
Version History is currently not supported.
- Sign in to your Backblaze account.
- In the left navigation menu under B2 Cloud Storage, click Buckets.
- Click Create a Bucket.
- Enter a name for your bucket.
Bucket names must be at least six characters and globally unique. A message is displayed if your bucket name is already in use. - Select a privacy setting: Private or Public.
Files that are in a private bucket require authentication to perform an action, for example, downloading. Public buckets do not require authentication so you can easily share files. You can change a bucket's privacy settings at any time. - If applicable, enable a Backblaze B2 server-side encryption key.
- Enable Object Lock to restrict a file from being modified or deleted for a specified period of time.
- Click Create a Bucket, and copy the value that is in the Endpoint field; you may need this value for other processes.
- Click Lifecycle Settings to control how long to keep the files in your new bucket.
Create an Application Key
You must enable Read and Write as the type of access for the app key that you create for ShareSecure buckets.
Application keys control access to your Backblaze B2 Cloud Storage account and the buckets that are contained in your account.
- Sign in to your Backblaze account.
- In the left navigation menu under Account, click Application Keys.
- Click Add a New Application Key, and enter an app key name.
You cannot search an app key by this name; therefore, app key names are not required to be globally unique. - In the Allow Access to Bucket(s) dropdown menu, select All or a specific bucket.
- Select your access type (for example, Read and Write).
- Select the optional Allow List All Bucket Names checkbox (required for the Backblaze B2 S3-compatible API List Buckets operation).
- Click Create New Key, and note the resulting keyID and applicationKey values.
Configure ShardSecure
- Open the ShardSecure configuration portal.
- Select ShardFileSystems, and click + (add).
- Select Backblaze from the Add Storage System drop-down menu.
- Enter a name for the ShardFileSystem, and click ADD.
- Enter your Backblaze B2 credentials.
- Enter a name (for example, Backblaze B2).
- Enter your application key ID.
- Enter your application key.
- Enter a key name as the user agent.
- Click ADD SCF.
- Enter the name of your Backblaze B2 bucket, enter a name for the bucket in ShardSecure, and enter a value in the Shard Size field.
The Shard Size should be 4 unless your ShardSecure Consultant recommends another value. - Click ADD SCF.
- Repeat these steps to add all of the buckets that you configured in Backblaze.
All of the Backblaze B2 buckets are displayed under the ShardFileSystem for Backblaze.
Create a Policy
- Select Policies, and click + (add).
- Enter the policy name, and click ADD.
- Select Rule to set a new rule for the policy.
- Select a Rule Type (for example Name), select a Rule Operator (for example, Equals), and enter a value (for example, *).
- Click SAVE.
- Click ShardContainerFiles to select your storage buckets.
- Click + (add) to add your Backblaze B2 buckets to the policy.
All buckets are displayed under Configured Shard Container File. - Click CLOSE to exit the setup dialogue.
Configuration is now complete, and you are able to upload data to Backblaze using ShardSecure. After you upload the configuration to your ShardSecure cluster, you can create a bucket within ShardSecure and upload data using the S3-Compatible API. ShardSecure introduces data confidentiality, integrity, and availability before the data is stored in Backblaze B2.