Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Release/0.1.1 (#137)
Browse files Browse the repository at this point in the history
* Add installation instructions (#129)

* Add installation instructions

* Update installation page to include links

* Update instructions

* Add Metadata to Python SDK (#134)

* Add Python metadata

* Update pyproject.toml

* Update pyproject.toml

* Fix broken config (#136)

Co-authored-by: Dio Gado <[email protected]>
  • Loading branch information
tyrannosaurus-becks and UpGado authored Jul 13, 2020
1 parent acd29e6 commit 76415d2
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 27 deletions.
27 changes: 1 addition & 26 deletions authenticator/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"flag"
"fmt"
"os"
"os/signal"
Expand All @@ -13,32 +12,8 @@ import (
log "github.com/sirupsen/logrus"
)

var devMode bool

func init() {
flag.BoolVar(&devMode, "dev", false, "run in dev mode")
}

func main() {
flag.Parse()

var c config.Config
var err error
if devMode {
// dev mode uses the file back-end
os.Unsetenv("VAULT_ADDR")
c = config.Config{
Host: "127.0.0.1",
HTTPPort: 6000,
GRPCPort: 6001,
DisableTLS: true,
LogLevel: "debug",
LogFormat: "text",
LogRaw: false,
}
} else {
c, err = config.ParseConfig()
}
c, err := config.ParseConfig()
if err != nil {
log.Errorf("couldn't parse config: %s", err)
return
Expand Down
50 changes: 50 additions & 0 deletions docs/docs/installation.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: Installation
---

## Client SDKs

- Python: `pip3 install approzium`

## Authentication server binaries

- Our binaries are posted with [our releases](https://github.com/cyralinc/approzium/releases).

## Running the server binary

### Linux

Please replace `linux_amd64.zip` with the correct version of Linux for your environment.

```
curl https://github.com/cyralinc/approzium/releases/download/v0.1.0/linux_amd64.zip
unzip linux_amd64.zip
chmod +x authenticator
./authenticator
```

### Mac

Please replace `darwin_amd64.zip` with the correct version of Mac for your environment.

```
curl https://github.com/cyralinc/approzium/releases/download/v0.1.0/darwin_amd64.zip
unzip darwin_amd64.zip
chmod +x authenticator
./authenticator
```

### Windows

Please replace `windows_amd64.zip` with the correct version of Windows for your environment.

```
$url = "https://github.com/cyralinc/approzium/releases/download/v0.1.0/windows_amd64.zip"
$outpath = "$PSScriptRoot/windows_amd64.zip"
Invoke-WebRequest -Uri $url -OutFile $outpath
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($url, $outpath)
$args = @("Comma","Separated","Arguments")
Expand-Archive -LiteralPath $outpath -DestinationPath C:\ $PSScriptRoot
Start-Process -Filepath "$PSScriptRoot/authenticator.exe" -ArgumentList $args
```
3 changes: 3 additions & 0 deletions docs/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Additionally, Approzium addresses common security vulnerabilities in how applica
```python
from psycopg2 import connect

# In your environment, the password may be pulled from any place, S3, a config
# file, HashiCorp Vault, or wherever. But wherever it originates, it can be
# leaked by your client application because it's in memory.
conn = connect("host=1.2.3.4 user=user1 password=verySecurePassword")
```

Expand Down
4 changes: 3 additions & 1 deletion sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ build-backend = "poetry.masonry.api"
name = "approzium"
version = "0.1.1"
description = "Approzium SDK provides Approzium database authentiation for Python"
authors = ["Cyral <[email protected]>"]
authors = ["Cyral <[email protected]>"]
homepage = "https://github.com/cyralinc/approzium"
license = "Apache-2.0"

[tool.poetry.dependencies]
python = "^3.5"
Expand Down

0 comments on commit 76415d2

Please sign in to comment.