0.5.6 ā€¢ Published 5 months ago

spyglass-cli v0.5.6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

spyglass-ascii

GitHub Workflow Status (with branch) GitHub commit activity GitHub GitHub milestone

Manage your Snowflake access controls as code.


šŸš£ā€ā™‚ļø Before Spyglass: Permissions are managed manually across scripts, snowsight worksheets, and one-off requests.

šŸš¤ After Spyglass: Permissions are managed centrally in git and automatically synced to Snowflake.

Overview

For a detailed explanation, see our Introducing Snowflake Access-as-Code post.

Basic usage of this tool looks like:

1. Import your current Snowflake objects/roles to YAML.

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”     spyglass import / sync      ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
ā”‚ Snowflake ā”‚ ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā–ŗ ā”‚   YAML   ā”‚
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜                                 ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

2. Manage them as code.

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”          make changes           ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
ā”‚           ā”‚ ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā–ŗ ā”‚          ā”‚
ā”‚ Data User ā”‚        spyglass verify          ā”‚   YAML   ā”‚
ā”‚           ā”‚ ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā–ŗ ā”‚          ā”‚
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜                                 ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

3. Automatically sync objects/roles between your Git repo and Snowflake.

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”        spyglass apply           ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
ā”‚ Snowflake ā”‚ ā—„ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ ā”‚   YAML   ā”‚
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜                                 ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Getting Started

Install the CLI using npm:

sudo npm install -g spyglass-cli@latest

Basic Usage

See How do I set up the CLI? #43.

See the Reference Documentation for details on the configuration.

CI/CD Usage

See How do I set up github actions / workflows? #42.

Query Usage

For getting insight into "who can access what?", see Announcing Queries (alpha) #45.

Getting Help and Contributing

We love working with the community, here's a few ways to get involved:

  1. Discussions - For FAQs, Q&A, feature requests, ideas, announcements, and sharing your use cases.
  2. Issues - For bug reports and concrete work items.
  3. Email - If all else fails, or if you'd just like to chat, let us know at devs@spyglass.software.
  4. Slack - For early partners, we're working on Slack for real time feedback and support. If you're interested, reach out to demo@spyglass.software.

Security

For submitting security issues, see SECURITY.md

For our security guidance to users, see Security Best Practices #96

Usage Analytics

We constantly improve this software, but we need your help! By default, we log anonymous analytics such as: commands invoked, errors, and software versions. We never log any personally-identifiable user information.

To opt out, you can run spyglass config:set disableAnalytics true. See https://github.com/spyglasshq/spyglass-cli/issues/9 and logging.ts for more information.

Roadmap

As of Q1 '23, Spyglass has full support for Snowflake. Support for other analytics databases (BigQuery, Databricks, Redshift, Oracle, etc.) is planned to follow.

Check out the Milestones page to track further progress.

0.5.4

5 months ago

0.5.3

6 months ago

0.5.6

5 months ago

0.5.5

5 months ago

0.5.2

6 months ago

0.4.7

7 months ago

0.5.0

7 months ago

0.5.1

7 months ago

0.4.5

8 months ago

0.4.4

8 months ago

0.4.6

8 months ago

0.4.1

10 months ago

0.4.0

10 months ago

0.4.3

9 months ago

0.3.4

11 months ago

0.4.2

9 months ago

0.3.3

12 months ago

0.3.2

12 months ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.17

1 year ago

0.1.16-dev

1 year ago

0.1.15-dev

1 year ago

0.1.14-dev

1 year ago

0.1.13-dev

1 year ago

0.1.12-dev

1 year ago

0.1.11-dev

1 year ago

0.1.10-dev

1 year ago

0.1.9-dev

1 year ago

0.1.8-dev

1 year ago

0.1.7-dev

1 year ago

0.1.6-dev

1 year ago

0.1.5-dev

1 year ago

0.1.4-dev

1 year ago

0.1.3-dev

1 year ago

0.1.2-dev

1 year ago