Releases: lacework/go-sdk
v0.1.4
Release Notes
Another day, another release. These are the release notes for the version v0.1.4
.
Install Lacework CLI on Windows
C:\> Set-ExecutionPolicy Bypass -Scope Process -Force
C:\> iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/lacework/go-sdk/master/cli/install.ps1'))
Features
- feat(install.ps1): support to install cli on windows (Salim Afiune Maya)(ae53d6f)
Bug Fixes
- fix(cli): use correct variable inside install.sh (Salim Afiune Maya)(eda17d5)
- fix(cli): support colors for windows (Salim Afiune Maya)(ea48379)
Documentation Updates
- doc(api): adds
_examples
or token-generation (Salim Afiune Maya)(c9dbc02) - docs(cli): update install.sh to use CLI (Salim Afiune Maya)(d0fda04)
- docs: added lacework-cli profiles (Salim Afiune Maya)(d2292b0)
Other Changes
v0.1.3
Release Notes
Another day, another release. These are the release notes for the version 'v0.1.3'.
Major Changes
Introducing the new lacework configure
command to configure the Lacework CLI:
$ lacework configure
Account: example
Access Key ID: EXAMPLE_1234EB06B01219B6B4D2529685B1652D7EBC2CD14AB9275
Secret Access Key: _1234567890bde000d77c2bbbe5c6
You are all set!
Profiles
You can switch between profiles with the --profile <name>
global flag.
$ lacework integration list --profile prod
Features
- feat(vul): show number of fixable vulnerabilities (Salim Afiune Maya)(6403029)
- feat(cli): new vulnerability command (Salim Afiune Maya)(494d8d8)
- feat(api): add vulnerabilities service (Salim Afiune Maya)(d0b2c3b)
- feat: introducing named profiles (Salim Afiune Maya)(6fb64fd)
- feat: disallow extra arguments on sub-commands (#48) (Salim Afiune Maya)(f67ca9a)
- feat: add configure command (#47) (Salim Afiune Maya)(f334fda)
Other Changes
- chore: adds a couple new go package dependencies (Salim Afiune Maya)(1842700)
v0.1.2
Release Notes
Another day, another release. These are the release notes for the version v0.1.2
.
Features
- feat(lwloggder): go package for logging messages (Salim Afiune Maya)(cb5feee)
Refactor
- refactor(cli): rename cli binary to lacework (Salim Afiune Maya)(51ce22f)
Breaking Changes
With the rename of the Lacework cli from lacework-cli
to lacework
users
will have to manually remove previous versions of the binary manually, for Mac
users that location should be /usr/local/bin/lacework-cli
if the cli was installed
with the install.sh
script.
v0.1.1
Release Notes
Another day, another release. These are the release notes for the version 'v0.1.1'.
Features
- feat(api): debug logs for all requests & responses (Salim Afiune Maya)(209f7ee)
- feat(api): add api client IDs for multi-client req (Salim Afiune Maya)(82c209f)
- feat(api): implement a logging mechanism using zap (Salim Afiune Maya)(c078a70)
Bug Fixes
- fix(cli): error when account is empty (Salim Afiune Maya)(7dc59aa)
- fix(cli): load debug state correctly (Salim Afiune Maya)(8f7343c)
- fix(cli) Update environment variable prefix (Scott Ford)(484ca39)
- docs(README) Update cli README to add documentation for ENV VARS (Scott Ford)(484ca39)
Documentation Updates
- doc(cli): fix single quote typo (Salim Afiune Maya)(3770b89)
- doc(logo): add logo to main README (Salim Afiune Maya)(620b992)
Other Changes
v0.1.0
Changelog
- Release of
lacework-cli
MVP #28
Basic Usage
Install the tool following the documentation here, then run a basic command:
$ lacework-cli integration list
- Lacework API client (Go) #2
Basic Usage
package main
import (
"fmt"
"log"
"github.com/lacework/go-sdk/api"
)
func main() {
lacework, err := api.NewClient("account")
if err == nil {
log.Fatal(err)
}
tokenRes, err := lacework.GenerateTokenWithKeys("KEY", "SECRET")
if err != nil {
log.Fatal(err)
}
// Output: YOUR-ACCESS-TOKEN
fmt.Println(tokenRes.Token())
}