Skip to main content

No project description provided

Project description

Flowcli

This is a command line tool to interact with convisoappsec flow api. This aims to be very useful for integrations development.

Installation

To install flowcli some dependecies are required:

If you have system admin privileges just execute one of the following commands.

$ pip install conviso-flowcli

or

$ python3 -m pip install conviso-flowcli

If you haven't system admin privileges execute one of the following commands.

$ pip install --user conviso-flowcli

or

$ python3 -m pip install --user conviso-flowcli

Check if the install command was well succeeded.

$ flow --version

The command will print the current version and exit with success. Now we are ready to proceed.

Getting started

Overview

The primary goal of the flowcli aims to be a developer friendly tool. The tool will automate as many steps as possible to decrease spent time on an integration with appsec flow. Using this tool the integration with your CI/CD platform will be easy. At your CI/CD you be able to perform SAST and DAST analysis, send source code to be reviewed by our analysts and order features availables in your appsec flow account.

Shell Completion

This section will guide you to activate the flow shell completion. This is not required to use the tool so you can skip it if you want.

Bash

Open your .bashrc file at ~/.bashrc and place the following snippet in the end of file.

FLOW_COMPLETER="$(which flow_bash_completer.sh)"

[ -f "$FLOW_COMPLETER" ] && {
  source "$FLOW_COMPLETER"
}

Start a new bash shell session and the shell completion will be available.

Zsh

Open your .zshrc file at ~/.zshrc and place the following snippet in the end of file.

FLOW_COMPLETER="$(which flow_zsh_completer.sh)"

[ -f "$FLOW_COMPLETER" ] && {
  source "$FLOW_COMPLETER"
}

Start a new zsh shell session and the shell completion will be available.

Fish

Start a fish shell session and execute the following command.

$ mkdir -p ~/.config/fish/completions
$ cp (which flow_fish_completer.fish) ~/.config/fish/completions/flow.fish

Start a new fish shell session and the shell completion will be available.

Main command

The main command of flowcli is flow. To see the command help run the following command.

$ flow -h

or

$ flow --help

Authentication

To start with flowcli an appsec flow api key(See generating api key) will be necessary. After you got it you can export the key as system environment variable and use the flowcli.

$ export FLOW_API_KEY='you-api-key'

or the api key can be set as option argument

$ flow --api-key 'you-api-key' [SOME COMMAND]

Static program analysis(SAST)

With the flowcli is very simple to perform a SAST at your source code repository. Let's see some examples.

Reporting the SAST results to Flow AppSec API

To report the SAST result to flow api a project code will be required. The project is created at Flow AppSec Web View. See creating project.

Assuming that my_source_code_repository is a git repository, so:

$ export FLOW_API_KEY='your-api-key'
$ export FLOW_PROJECT_CODE='your-project-code'
$ cd my_source_code_repository
$ flow sast run

The following instructions has the same effect.

$ cd my_source_code_repository
$ flow --api-key 'your-api-key' sast run --project-code 'your-project-code'

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conviso-flowcli-1.7.3rc0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conviso_flowcli-1.7.3rc0-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file conviso-flowcli-1.7.3rc0.tar.gz.

File metadata

  • Download URL: conviso-flowcli-1.7.3rc0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.5.10

File hashes

Hashes for conviso-flowcli-1.7.3rc0.tar.gz
Algorithm Hash digest
SHA256 af06754c34748386cbd934d941391fbe4a9d61c8f243269ce7f7989f0d509da2
MD5 6252032637877113863ec67f4b4fd6dd
BLAKE2b-256 b95c4e6fbdfef095b2ac23aac73e3ca4a160efa884c108093067b49471c1705f

See more details on using hashes here.

File details

Details for the file conviso_flowcli-1.7.3rc0-py3-none-any.whl.

File metadata

  • Download URL: conviso_flowcli-1.7.3rc0-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.5.10

File hashes

Hashes for conviso_flowcli-1.7.3rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d360898fb49e23c0c88cf262bf0eea02d42e5500e91b7df2ede5dbab3b3c618
MD5 4a21bf18a98a282cd1f080d7ee78f834
BLAKE2b-256 e91d7705821c21f748b9b07f367860dcb08613af50bea7e742c72a6f1d587513

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page