Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/google_workspace/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.5.0"
changes:
- description: Allow to set credentials directly in the config.
type: enhancement
link: https://github.com/elastic/integrations/pull/3430
- version: "1.4.0"
changes:
- description: Update to ECS 8.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@ input: httpjson
service: google_workspace
vars:
preserve_original_event: true
jwt_file: "{{SERVICE_LOGS_DIR}}/credentials.json"
jwt_json: |
{
"type": "service_account",
"project_id": "system-tests",
"private_key_id": "a2ef9c637b4176ec994606cb08724a1b79bc0666",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC9SzdiBfhGcQrN\nLKofn3198cwOJ3DclRM3On9qVEHKIY3aCcLZgst4HyBtkefZeSVgIRPWhStWY8CK\nPBXZHM9jAifSQiHjNU4o7v5EMIKuCrwKAgbXFnJSEwXe7CfzrytKZfkVndPf+ZrH\nnUSwAmbNrB5/VOqtBF0QrG48FCz/ipZph5AJ5h5kFVyDZvwJSaDfDWUHTvZfO3tw\nlSnwVTWztT0d+CDYOyWH34NJVfTKirA3xifDgVcxLKoC7850FsZqJ05HpiOUrHc5\nJRRiy4HurdcPKKBvpVrtbvftBMsiG0RvnqXgTSI7iMNPjUtpjLC9GlZ6B+8egUEd\ndtdPoDG1AgMBAAECggEAP2ks+ldJnj9MAQNPUhyZa1FOrAcmVZ5Su5OLD1F+YHnx\nDPNsJHUeN/UlZc8UvdNJY/RwstIVfHEaFLSgFQUDrAUS1ep1c6ltr2SwJKOjgy3x\nY+Dd7buFPF1HADBYCdfKRrf2QvmF+mehI/FZCyUizw8zg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cIIlmloogE\n-----END PRIVATE KEY-----",
"client_email": "foo@bar.com",
"client_id": "007155790781103885639",
"auth_uri": "http://google_workspace:8080/o/oauth2/auth",
"token_uri": "http://google_workspace:8080/token",
"auth_provider_x509_cert_url": "http://google_workspace:8080/oauth2/v1/certs",
"client_x509_cert_url": "http://google_workspace:8080/robot/v1/metadata/x509/foo%40bar.com"
}
delegated_account: test@example.com
api_host: http://{{Hostname}}:{{Port}}
data_stream:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
auth.oauth2.provider: google
auth.oauth2.google.jwt_file: {{jwt_file}}
auth.oauth2.google.jwt_json: {{jwt_json}}
auth.oauth2.google.delegated_account: {{delegated_account}}
auth.oauth2.scopes:
- https://www.googleapis.com/auth/admin.reports.audit.readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
auth.oauth2.provider: google
auth.oauth2.google.jwt_file: {{jwt_file}}
auth.oauth2.google.jwt_json: {{jwt_json}}
auth.oauth2.google.delegated_account: {{delegated_account}}
auth.oauth2.scopes:
- https://www.googleapis.com/auth/admin.reports.audit.readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
auth.oauth2.provider: google
auth.oauth2.google.jwt_file: {{jwt_file}}
auth.oauth2.google.jwt_json: {{jwt_json}}
auth.oauth2.google.delegated_account: {{delegated_account}}
auth.oauth2.scopes:
- https://www.googleapis.com/auth/admin.reports.audit.readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
auth.oauth2.provider: google
auth.oauth2.google.jwt_file: {{jwt_file}}
auth.oauth2.google.jwt_json: {{jwt_json}}
auth.oauth2.google.delegated_account: {{delegated_account}}
auth.oauth2.scopes:
- https://www.googleapis.com/auth/admin.reports.audit.readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
auth.oauth2.provider: google
auth.oauth2.google.jwt_file: {{jwt_file}}
auth.oauth2.google.jwt_json: {{jwt_json}}
auth.oauth2.google.delegated_account: {{delegated_account}}
auth.oauth2.scopes:
- https://www.googleapis.com/auth/admin.reports.audit.readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config_version: "2"
interval: {{interval}}
auth.oauth2.provider: google
auth.oauth2.google.jwt_file: {{jwt_file}}
auth.oauth2.google.jwt_json: {{jwt_json}}
auth.oauth2.google.delegated_account: {{delegated_account}}
auth.oauth2.scopes:
- https://www.googleapis.com/auth/admin.reports.audit.readonly
Expand Down
15 changes: 12 additions & 3 deletions packages/google_workspace/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: google_workspace
title: Google Workspace Audit Reports
version: 1.4.0
version: 1.5.0
release: ga
description: Collect audit reports from Google Workspaces with Elastic Agent.
type: integration
Expand All @@ -14,7 +14,7 @@ icons:
categories:
- security
conditions:
kibana.version: ^7.16.0 || ^8.0.0
kibana.version: ^8.4.0
policy_templates:
- name: google_workspace
title: Google Workspace logs
Expand All @@ -27,7 +27,16 @@ policy_templates:
title: Jwt File
description: Specifies the path to the JWT credentials file.
multi: false
required: true
required: false
show_user: true
- name: jwt_json
type: text
title: Jwt JSON
description: |
Raw contents of the JWT file. Useful when hosting
a file along with the agent is not possible.
multi: false
required: false
show_user: true
- name: delegated_account
type: text
Expand Down