-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(cli): The new lacework-cli MVP #28
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Salim Afiune Maya <[email protected]>
ghost
self-assigned this
Mar 26, 2020
This is the MVP of the `lacework-cli` tool! Signed-off-by: Salim Afiune Maya <[email protected]>
ghost
force-pushed
the
afiune/cli/mvp
branch
2 times, most recently
from
March 26, 2020 23:52
b30dd78
to
07a66a4
Compare
Signed-off-by: Salim Afiune Maya <[email protected]>
Signed-off-by: Salim Afiune Maya <[email protected]>
Signed-off-by: Salim Afiune Maya <[email protected]>
scottford-lw
approved these changes
Mar 27, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ghost
deleted the
afiune/cli/mvp
branch
March 27, 2020 16:01
// apiCmd represents the api command | ||
apiCmd = &cobra.Command{ | ||
Use: "api <method> <path>", | ||
Short: "Helper to call Lacework's ResfulAPI", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "Restful"
This pull request was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨
lacework-cli
MVP 🔥🙌🏽The Lacework Command Line Interface is a tool that helps you manage your
Lacework cloud security platform. You can use it to manage compliance
reports, external integrations, vulnerability scans, and other operations.
Install
Bash:
Powershell:
Configuration File
The
lacework-cli
looks for a file named.lacework.toml
inside your homedirectory (
$HOME/.lacework.toml
) to access the following parameters:account
: Account subdomain of URL (i.e.<ACCOUNT>.lacework.net
)api_key
: API Access Key IDapi_secret
: API Access Secret KeyAn example of a Lacework configuration file:
You can provide a different configuration file with the option
--config
.Basic Usage
Once you have created your configuration file
$HOME/.lacework.toml
,you are ready to use the Lacework cli, a few basic commands are:
api
command to access Lacework's ResfulAPI, for example,to get details about and specific event:
$ lacework-cli api get '/external/events/GetEventDetails?EVENT_ID=16700'
Help Message / Usage 👀
Show the Schema of an Integration