-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(PSP-1219): add provider for azure agentless integration #588
Conversation
go.mod
Outdated
@@ -11,6 +11,8 @@ require ( | |||
golang.org/x/text v0.13.0 | |||
) | |||
|
|||
replace github.com/lacework/go-sdk v1.37.0 => /Users/aoz/dev/go-sdk |
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.
was added for local test override. Will remove
|
||
creds := make(map[string]string) | ||
creds["client_id"] = integration.Data.Credentials.ClientId | ||
d.Set("credentials", []map[string]string{creds}) |
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.
do we need to set client secret?
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.
good question. I copied it from the GCP flow. Apparently it was intentionally removed (#531) so I'm just going to do the same here.
integration/azure_auth.go
Outdated
) | ||
|
||
type azureCredentialsFile struct { | ||
ClientSecret string `json:"keyId"` |
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.
Are these mapped incorrectly? Shouldn't keyId map to ClientID and secret map to ClientSecret?
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.
Nice work!
Just a few minor comments.
the test-build will require a rollout of lacework/go-sdk#1447 to work (had local override so it worked locally). I'll push for a release of go-sdk and run tests here. |
a6228b2
to
5238024
Compare
5238024
to
4dc3dd3
Compare
Issue: https://lacework.atlassian.net/browse/PSP-1219
Description:
This adds lacework integration provider for Azure Agentless support.
Added an integration test for the change.
cd /Users/aoz/dev/terraform-provider-lacework/ && make build && make install && go mod vendor && cd integration && go test -v -run "TestIntegrationAzureAgentlessScanningCreate"
passed