Skip to content
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(cli): CLI guided config support for creating Azure AD integration #1628

Merged
merged 14 commits into from
Aug 15, 2024

Conversation

Manan-Bhatia-0
Copy link
Contributor

@Manan-Bhatia-0 Manan-Bhatia-0 commented May 23, 2024

Summary

This PR adds support to create an Azure Entra ID (formerly Active Directory) activity log integration with LW. Support is added for both, manual and guided config.

How did you test this change?

  • make test
  • make prepare
  • make build-cli-cross-platform
  • make install-cli
  • /usr/local/bin/lacework generate cloud-account azure

Screenshots [CLI]:
Screenshot 2024-05-23 at 3 10 43 PM
Screenshot 2024-05-23 at 3 11 35 PM

  • added unit tests

Issue

RAIN-93116

@Manan-Bhatia-0 Manan-Bhatia-0 requested a review from a team as a code owner May 23, 2024 22:11
Copy link
Contributor

@ipcrm ipcrm left a comment

Choose a reason for hiding this comment

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

This is looking great! One small change and please resolve the test/lint failures. Thx!

}

// Ensure all combinations of inputs are valid for supported spec
func (args *GenerateAzureTfConfigurationArgs) validate() error {
// Validate one of config or activity log was enabled; otherwise error out
if !args.ActivityLog && !args.Config {
if !args.ActivityLog && !args.Config && !args.EntraIdActivityLog {
return errors.New("audit log or config integration must be enabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

Add entra to this list

Copy link
Contributor Author

@Manan-Bhatia-0 Manan-Bhatia-0 May 28, 2024

Choose a reason for hiding this comment

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

EntraID is still audit log so I didn't change the error message, because right now the users have the option to create audit log with either option, but I did add it to the if-condition check.

@Manan-Bhatia-0 Manan-Bhatia-0 requested a review from a team as a code owner August 15, 2024 21:42
@Manan-Bhatia-0 Manan-Bhatia-0 requested review from zekisherif, mjunglw and leijin-lw and removed request for a team August 15, 2024 21:42
@Manan-Bhatia-0 Manan-Bhatia-0 enabled auto-merge (squash) August 15, 2024 23:23
@Manan-Bhatia-0 Manan-Bhatia-0 merged commit e5ecd21 into main Aug 15, 2024
10 checks passed
@Manan-Bhatia-0 Manan-Bhatia-0 deleted the RAIN-93116-cli-guided-config-azure-ad branch August 15, 2024 23:38
This was referenced Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants