GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cipherstash-archive/ruby-client: Ruby client for the CipherStash searchable encrypted data store

This repository was archived by the owner on Jan 27, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

227 Commits
227 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
lib/cipherstash
lib/cipherstash
 
 
spec
spec
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.tool-versions
.tool-versions
 
 
.yardopts
.yardopts
 
 
CODEOWNERS
CODEOWNERS
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Gemfile
Gemfile
 
 
Guardfile
Guardfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
cipherstash-client.gemspec
cipherstash-client.gemspec
 
 

Repository files navigation

This is a Ruby (with Rust backend) client for the CipherStash encrypted, searchable data store.

!!! CURRENT STATUS !!!

This client is currently in a "late-alpha" state. While we're happy for you to use it, and most things work, there are a couple of things missing. If something not on the list below is broken for you, please report an issue.

At present, interacting with collections or records created with StashJS is not supported.

Installation

As cipherstash-client uses Rust-based libraries (ore-rs and enveloperb) for its underlying cryptography, installation can be a bit trickier than for most gems.

We provide pre-built native gems, which contain the underlying cryptographic primitive code pre-compiled, for platforms we officially support. Those platforms are:

  • Linux x86_64 and aarch64 ("arm64"); and
  • macOS x86_64 and arm64

Pre-requisites

Rust

For platforms we don't (yet) officially support, you will need to have at least Rust 1.59.0 installed. If you are on an arm64 machine (M1 Mac, for example) you will need to be running a recent Rust nightly for SIMD intrinsics support.

Da gem! Da gem!

Once the above pre-requisites are all sorted, you can go ahead and install cipherstash-client itself.

The basic option is to install it as a gem directly:

gem install cipherstash-client

There's also the wonders of the Gemfile:

gem 'cipherstash-client'

If you're the sturdy type that likes to run from git:

rake install

Or, if you've eschewed the convenience of Rubygems entirely, then you presumably know what to do already.

Usage

Getting Off The Ground

First off, you need to load the library and a client:

require "cipherstash/client"

stash = CipherStash::Client.new

This will pick up your configuration from the default profile; if you want to specify a different profile to load:

stash = CipherStash::Client.new(profileName: "bob")

Alternately, you can also set all configuration via environment variables. See the CipherStash Client Configuration reference for more details.

Collections

All data in CipherStash is stored in collections. You can load all collections:

stash.collections  # => [<collection>, <collection>, ...]

Or you can load a single collection, if you know its name:

collection = stash.collection("movies")

Inserting Records

To insert a record:

collection.insert({ foo: "bar", baz: "wombat" })

Querying

A query is a set of constraints applied to the records in a collection. Constraints are defined in a block passed to Collection#query, like so:

collection.query do |movies|
  movies.exactTitle("Star Trek: The Motion Picture")
  movies.year.gt(1990.0)
end

Multiple constraints will be ANDed together, and so the above query will not return any records because "Star Trek: The Motion Picture" was made before 1990.

API Documentation

The auto-generated API documentation should provide complete documentation of all public methods and classes.

Need help?

Head over to our support forum, and we'll get back to you super quick!

Contributing

Please see CONTRIBUTING.md for general contribution guidelines.

Making a Release

If you have push access to the GitHub repository, you can make a release by doing the following:

  1. Run git version-bump -n <major|minor|patch> (see the semver spec for what each of major, minor, and patch version bumps represent).

  2. Write a changelog for the release, in Git commit style (headline on the first line, blank line, then Markdown text as you see fit). Save/exit your editor. This will automatically push the newly-created annotated tag, which will in turn kick off a release build of the gem and push it to RubyGems.org.

  3. Run rake release to automagically create a new GitHub release for the project.

... and that's it!

About

Ruby client for the CipherStash searchable encrypted data store

cipherstash.com

Topics

cipherstashdata-securitydatabaseencryptionrubysearch

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

2 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.