-
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
feat(PSP-1220): add new cloud account type for Azure Agentless integration #1443
Conversation
api/cloud_accounts_azure_sidekick.go
Outdated
type AzureSidekickData struct { | ||
Credentials AzureSidekickCredentials `json:"credentials"` | ||
IntegrationType string `json:"integrationType"` // SUBSCRIPTION or TENANT | ||
SubscriptionId string `json:"subscriptionId"` |
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.
This should be named scanningSubscriptionId, isn't it?
https://github.com/lacework/rainbow/blob/7b6b998bb4b8ec14f11fb0700e1cff12fce2bf7f/iris/src/main/resources/schema/INTEGRATION_SCHEMA.json#L312
api/cloud_accounts_azure_sidekick.go
Outdated
|
||
type AzureSidekickData struct { | ||
Credentials AzureSidekickCredentials `json:"credentials"` | ||
IntegrationType string `json:"integrationType"` // SUBSCRIPTION or TENANT |
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.
api/cloud_accounts_azure_sidekick.go
Outdated
type AzureSidekickCredentials struct { | ||
ClientID string `json:"clientId"` | ||
ClientSecret string `json:"clientSecret,omitempty"` | ||
CredentialType string `json:"credentialType"` // SharedCredentials or SharedAccess |
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.
Currently AZURE_SIDEKICK integration schema doesn't have credentialType, so adding it would violate the schema. Is this field necessary? If yes, we would have to add it to the schema.
Nice work @qianxuweiren |
Exactly the feedbacks I wanted. Thanks Japneet. Fix coming up shortly. |
Summary
This is needed to support Agentless running on Azure.
How did you test this change?
Added a test.
make test
passed. AlsoIssue
https://lacework.atlassian.net/browse/PSP-1220