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: microsoft_security and microsoft_security_query data sources in microsoft plugin #261

Merged
merged 14 commits into from
Nov 17, 2024
288 changes: 144 additions & 144 deletions .goreleaser-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
- CGO_ENABLED=0

snapshot:
name_template: "{{ .Version }}-dev+{{if .IsGitDirty}}dirty.{{end}}rev.{{.FullCommit}}"
version_template: "{{ .Version }}-dev+{{if .IsGitDirty}}dirty.{{end}}rev.{{.FullCommit}}"

builds:
# CLI
Expand All @@ -23,146 +23,146 @@ builds:

# Plugins

# - id: elastic
# main: ./internal/elastic/cmd
# binary: "plugins/blackstork/elastic@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: github
# main: ./internal/github/cmd
# binary: "plugins/blackstork/github@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: graphql
# main: ./internal/graphql/cmd
# binary: "plugins/blackstork/graphql@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: openai
# main: ./internal/openai/cmd
# binary: "plugins/blackstork/openai@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: opencti
# main: ./internal/opencti/cmd
# binary: "plugins/blackstork/opencti@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: nistnvd
# main: ./internal/nistnvd/cmd
# binary: "plugins/blackstork/nist_nvd@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: postgresql
# main: ./internal/postgresql/cmd
# binary: "plugins/blackstork/postgresql@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: sqlite
# main: ./internal/sqlite/cmd
# binary: "plugins/blackstork/sqlite@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: terraform
# main: ./internal/terraform/cmd
# binary: "plugins/blackstork/terraform@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: hackerone
# main: ./internal/hackerone/cmd
# binary: "plugins/blackstork/hackerone@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: virustotal
# main: ./internal/virustotal/cmd
# binary: "plugins/blackstork/virustotal@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: splunk
# main: ./internal/splunk/cmd
# binary: "plugins/blackstork/splunk@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: stixview
# main: ./internal/stixview/cmd
# binary: "plugins/blackstork/stixview@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: snyk
# main: ./internal/snyk/cmd
# binary: "plugins/blackstork/snyk@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: microsoft
# main: ./internal/microsoft/cmd
# binary: "plugins/blackstork/microsoft@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin

# - id: iris
# main: ./internal/iris/cmd
# binary: "plugins/blackstork/iris@{{ .Version }}"
# ldflags: "-X main.version={{.Version}}"
# gcflags: all=-N -l
# no_unique_dist_dir: true
# tags:
# - fabricplugin
- id: elastic
main: ./internal/elastic/cmd
binary: "plugins/blackstork/elastic@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: github
main: ./internal/github/cmd
binary: "plugins/blackstork/github@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: graphql
main: ./internal/graphql/cmd
binary: "plugins/blackstork/graphql@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: openai
main: ./internal/openai/cmd
binary: "plugins/blackstork/openai@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: opencti
main: ./internal/opencti/cmd
binary: "plugins/blackstork/opencti@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: nistnvd
main: ./internal/nistnvd/cmd
binary: "plugins/blackstork/nist_nvd@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: postgresql
main: ./internal/postgresql/cmd
binary: "plugins/blackstork/postgresql@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: sqlite
main: ./internal/sqlite/cmd
binary: "plugins/blackstork/sqlite@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: terraform
main: ./internal/terraform/cmd
binary: "plugins/blackstork/terraform@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: hackerone
main: ./internal/hackerone/cmd
binary: "plugins/blackstork/hackerone@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: virustotal
main: ./internal/virustotal/cmd
binary: "plugins/blackstork/virustotal@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: splunk
main: ./internal/splunk/cmd
binary: "plugins/blackstork/splunk@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: stixview
main: ./internal/stixview/cmd
binary: "plugins/blackstork/stixview@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: snyk
main: ./internal/snyk/cmd
binary: "plugins/blackstork/snyk@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: microsoft
main: ./internal/microsoft/cmd
binary: "plugins/blackstork/microsoft@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin

- id: iris
main: ./internal/iris/cmd
binary: "plugins/blackstork/iris@{{ .Version }}"
ldflags: "-X main.version={{.Version}}"
gcflags: all=-N -l
no_unique_dist_dir: true
tags:
- fabricplugin
10 changes: 4 additions & 6 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,13 @@ packages:
config:
interfaces:
Client:
github.com/blackstork-io/fabric/internal/microsoft/client:
config:
interfaces:
Client:
github.com/blackstork-io/fabric/internal/microsoft:
config:
interfaces:
AzureOpenaiClient:
AzureClient:
AzureOpenAIClient:
MicrosoftGraphClient:
MicrosoftSecurityClient:
github.com/blackstork-io/fabric/internal/crowdstrike:
config:
interfaces:
Expand All @@ -73,4 +71,4 @@ packages:
outpkg: "{{.PackageName}}"
filename: "mock_{{.InterfaceName | snakecase}}_test.go"
interfaces:
Source:
Source:
4 changes: 2 additions & 2 deletions docs/plugins/microsoft/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: blackstork/microsoft
weight: 20
plugin:
name: blackstork/microsoft
description: "The `microsoft` plugin for Microsoft services."
description: "Plugin for Microsoft services."
tags: []
version: "v0.4.2"
source_github: "https://github.com/blackstork-io/fabric/tree/main/internal/microsoft/"
Expand All @@ -14,7 +14,7 @@ hideInMenu: true
{{< plugin-header "blackstork/microsoft" "microsoft" "v0.4.2" >}}

## Description
The `microsoft` plugin for Microsoft services.
Plugin for Microsoft services.

## Installation

Expand Down
Loading