GithubHelp home page GithubHelp logo

capeprivacy / cli Goto Github PK

View Code? Open in Web Editor NEW
30.0 6.0 3.0 14.91 MB

Cape Privacy CLI

Home Page: https://docs.capeprivacy.com

License: Apache License 2.0

Go 99.03% Shell 0.97%
cli confidential-computing golang nitro nitro-enclaves

cli's Introduction

Cape CLI

Usage

The CLI for Cape Privacy

See https://docs.capeprivacy.com/getting-started for documentation.

Developing

Building

go build ./cmd/cape

Config

For login purposes the following environment variables can be configured:

CAPE_AUTH_HOST                   String    https://login.capeprivacy.com
CAPE_ENCLAVE_HOST                String    https://app.capeprivacy.com
CAPE_CLIENT_ID                   String    yQnobkOr1pvdDAyXwNojkNV2IPbNfXxx
CAPE_AUDIENCE                    String    https://app.capeprivacy.com/v1/
CAPE_LOCAL_CONFIG_DIR            String    ~/.config/cape
CAPE_LOCAL_AUTH_FILE_NAME        String    auth

These can be configured through a config file, env variables, or command line flags. For example, to override the default value and route to a different enclave host:

cape config enclave_host https://app.capeprivacy.com   //set the value in ~/.config/cape/presets.json
export CAPE_ENCLAVE_HOST=https://app.capeprivacy.com   //set env variable that the cli will pick up
cape deploy app --url https://app.capeprivacy.com     //set the url for just this command

These options are provided in order of priority, and the value from the higher priority one will override a lower priority one. Ex: Command line value will always be used in case of conflict with same parameter in env variables or file preset.

cli's People

Contributors

annieltan avatar bendecoste avatar chrisfriesen avatar e-carlin avatar eric-capeprivacy avatar gavinuhma avatar jlapierre avatar justin1121 avatar kitschysynq avatar kkloberdanz avatar leerosen-cape avatar rahul-ramesh avatar shwetasah-cape avatar yanndupis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cli's Issues

Deploy bug with path to function dir

Deploying a function from a relative path like cape deploy ../capefunctiontest causes an error on the server once you call cape run.

Enclave console:

ERRO[0021] failed to process zip file                    error="illegal file path: functions/capefunctiontest/app.py"

But deploying the same function from the working directory like cape deploy capefunctiontest and cape run will succeed:

Enclave console:

INFO[0331] Unzipped function to functions/0000214b-a597-42fc-9a2f-d48ea9dc0000

Add sample program to the repository

In the readme it is mentioned how input_data and test_func are used but I cannot see an example of these files. I think it would be useful to have some samples inside the repository.

Cannot install cli without go

When running
tar -C /usr/bin -xzf cape_0.0.1_Linux_x86_64.tar.gz

I am getting

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Update readme

With linux and latest version I am getting several errors when doing the go installation


go install github.com/capeprivacy/cli/cmd/cape@latest
go: github.com/capeprivacy/cli/cmd/cape@latest: module github.com/capeprivacy/cli/cmd/cape: git ls-remote -q origin in /home/dragos/go/pkg/mod/cache/vcs/bf0f684bd73eb7eeef0c09315563f9653c097190fe0a264b96f66d6b7b90918f: exit status 128:
	fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.

What we did (with help of Eric) was the following:

go get ./...
go build ./cmd/cape

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.