Skip to content

Add Lacework plugin - #95

Merged
florisvdg merged 1 commit into
1Password:mainfrom
colinbarr:lacework
Dec 13, 2022
Merged

florisvdg merged 1 commit into
1Password:mainfrom
colinbarr:lacework

Conversation

@colinbarr

Copy link
Copy Markdown
Contributor

Adds support for the Lacework CLI, including import from the config file produced by lacework configure.

➜  shell-plugins git:(lacework) make lacework/validate
# BETA NOTICE: The plugin ecosystem is in beta and is subject to change.
# You may have to update or recompile your local builds every now and then to keep them
# compatible with the 1Password CLI updates.

go run cmd/contrib/main.go lacework/validate
# Plugin: lacework

✔ Has plugin name set
✔ Plugin name only using lowercase characters or digits
✔ Plugin name not longer than 20 characters
✔ Has platform name set
✔ Has platform homepage URL set
✔ Has a credential type or executable defined
✔ Has no more than one credential type defined. Plugins with multiple credential types are not supported yet
✔ Has no more than one executable defined. Plugins with multiple executables are not supported yet

# Credential: API Key

✔ Has name set
✔ Name is using title case
✔ Has documentation URL set
✔ Has management URL set
✔ Has at least 1 field
✔ All fields have name set
✔ All field names are using title case
✔ All fields have a description set
✔ All specified value compositions are valid
✔ Has at least 1 field that is secret
✔ Has a provisioner set
✔ Has an importer set

# Executable: Lacework CLI

✔ Has name set
✔ Has documentation URL set
✔ Has specified which commands need authentication
✔ Has executable command set
✔ Has a credential type defined
➜  shell-plugins git:(lacework) make test
go test ./...
?   	github.com/1Password/shell-plugins/cmd/contrib	[no test files]
?   	github.com/1Password/shell-plugins/cmd/contrib/build	[no test files]
ok  	github.com/1Password/shell-plugins/plugins	(cached)
ok  	github.com/1Password/shell-plugins/plugins/aws	(cached)
ok  	github.com/1Password/shell-plugins/plugins/circleci	(cached)
ok  	github.com/1Password/shell-plugins/plugins/datadog	(cached)
ok  	github.com/1Password/shell-plugins/plugins/digitalocean	(cached)
?   	github.com/1Password/shell-plugins/plugins/fossa	[no test files]
ok  	github.com/1Password/shell-plugins/plugins/github	(cached)
ok  	github.com/1Password/shell-plugins/plugins/gitlab	(cached)
ok  	github.com/1Password/shell-plugins/plugins/heroku	(cached)
ok  	github.com/1Password/shell-plugins/plugins/lacework	(cached)
ok  	github.com/1Password/shell-plugins/plugins/mysql	(cached)
ok  	github.com/1Password/shell-plugins/plugins/okta	(cached)
ok  	github.com/1Password/shell-plugins/plugins/postgresql	(cached)
ok  	github.com/1Password/shell-plugins/plugins/sentry	(cached)
ok  	github.com/1Password/shell-plugins/plugins/snyk	(cached)
ok  	github.com/1Password/shell-plugins/plugins/stripe	(cached)
?   	github.com/1Password/shell-plugins/plugins/tugboat	[no test files]
ok  	github.com/1Password/shell-plugins/plugins/twilio	(cached)
ok  	github.com/1Password/shell-plugins/plugins/vault	(cached)
ok  	github.com/1Password/shell-plugins/sdk	(cached)
ok  	github.com/1Password/shell-plugins/sdk/example	(cached)
?   	github.com/1Password/shell-plugins/sdk/importer	[no test files]
?   	github.com/1Password/shell-plugins/sdk/needsauth	[no test files]
ok  	github.com/1Password/shell-plugins/sdk/plugintest	(cached)
?   	github.com/1Password/shell-plugins/sdk/provision	[no test files]
?   	github.com/1Password/shell-plugins/sdk/rpc/proto	[no test files]
?   	github.com/1Password/shell-plugins/sdk/rpc/server	[no test files]
ok  	github.com/1Password/shell-plugins/sdk/schema	(cached)
?   	github.com/1Password/shell-plugins/sdk/schema/credname	[no test files]
?   	github.com/1Password/shell-plugins/sdk/schema/fieldname	[no test files]

@florisvdg florisvdg left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great contribution, thanks a lot! Left a few small comments.

Comment thread plugins/lacework/api_key.go Resolved
Comment thread plugins/lacework/api_key.go Resolved
Comment thread plugins/lacework/api_key.go Resolved
Comment thread plugins/lacework/api_key_test.go Resolved
@colinbarr

Copy link
Copy Markdown
Contributor Author

Great contribution, thanks a lot! Left a few small comments.

Thanks for the review! All comments resolved now.

@florisvdg florisvdg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@florisvdg
florisvdg merged commit 08587a2 into 1Password:main Dec 13, 2022
@colinbarr
colinbarr deleted the lacework branch March 28, 2023 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants