Skip to content

Commit

Permalink
feat: microsoft_security and microsoft_security_query data source…
Browse files Browse the repository at this point in the history
…s in `microsoft` plugin (#261)
  • Loading branch information
traut authored Nov 17, 2024
1 parent a106f7e commit 1c42837
Show file tree
Hide file tree
Showing 44 changed files with 2,276 additions and 1,050 deletions.
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

0 comments on commit 1c42837

Please sign in to comment.