Skip to content

Commit

Permalink
Revert: prisma_cloud: fix login endpoint path (elastic#11885) (elasti…
Browse files Browse the repository at this point in the history
…c#11995)

Change was incorrect[1]. Also improve documentation in the config UI.

[1]https://pan.dev/prisma-cloud/api/cwpp/post-authenticate/
  • Loading branch information
efd6 authored Dec 5, 2024
1 parent e0f1121 commit f59fcad
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/prisma_cloud/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.4.2"
changes:
- description: 'Revert: Fix path to API login for host data sources.'
type: bugfix
link: https://github.com/elastic/integrations/pull/11995
- version: "1.4.1"
changes:
- description: Don't leak access token into debug logs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ program: |
state.with(has(state.want_more) && !(state.want_more)
?
post_request(
state.url + "/login",
state.url + "/authenticate",
"application/json",
{"username":state.user,"password":state.password}.encode_json()
).do_request().as(resp, bytes(resp.Body).decode_json().as(body, {
Expand Down
2 changes: 1 addition & 1 deletion packages/prisma_cloud/data_stream/host/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ streams:
- name: url
type: text
title: URL
description: Base URL of the Prisma Cloud Server API.
description: Base URL of the Prisma Cloud Server API, in the form `https://<CONSOLE>/api/v<VERSION>`.
required: true
show_user: true
- name: interval
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ program: |
state.with(has(state.want_more) && !(state.want_more)
?
post_request(
state.url + "/login",
state.url + "/authenticate",
"application/json",
{"username":state.user,"password":state.password}.encode_json()
).do_request().as(resp, bytes(resp.Body).decode_json().as(body, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ streams:
- name: url
type: text
title: URL
description: Base URL of the Prisma Cloud Server API.
description: Base URL of the Prisma Cloud Server API, in the form `https://<CONSOLE>/api/v<VERSION>`.
required: true
show_user: true
- name: interval
Expand Down
2 changes: 1 addition & 1 deletion packages/prisma_cloud/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.0.3
name: prisma_cloud
title: "Palo Alto Prisma Cloud"
version: "1.4.1"
version: "1.4.2"
description: "Collect logs from Prisma Cloud with Elastic Agent."
type: integration
categories:
Expand Down

0 comments on commit f59fcad

Please sign in to comment.