Skip to content

PAPP-36780-cert auth method#59

Open
NiemySpiewak-splunk wants to merge 3 commits intomsankowska/PSAAS-24763-porting_HTTP_to_SDKfrom
msankowska/PAPP-36780-cert-based-auth-new
Open

PAPP-36780-cert auth method#59
NiemySpiewak-splunk wants to merge 3 commits intomsankowska/PSAAS-24763-porting_HTTP_to_SDKfrom
msankowska/PAPP-36780-cert-based-auth-new

Conversation

@NiemySpiewak-splunk
Copy link
Copy Markdown

Features

List any features you're adding to this app (e.g. new actions, parameters, auth methods, etc.)

  • certification auth method added

Manual Documentation

Have you made any changes that should be documented in manual_readme_content.md?

The following changes require documentation in manual_readme_content.md:

  • New, updated, or removed REST handlers
  • New, updated, or removed authentication methods, especially complex methods like OAuth
  • Compatibility considerations with respect to deployment types (e.g. actions that cannot be run on cloud or an automation broker)
  • I have verified that manual documentation has been updated where appropriate

Comment on lines +111 to +122
parsed_body, raw_body = helpers.handle_various_response(response)
logger.info(f"Successfully processed data. Status: {response.status_code}")

return output_cls(
status_code=response.status_code,
location=full_url,
method=method,
parsed_response_body=parsed_body,
response_body=raw_body,
response_headers=str(dict(response.headers)),
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

shouldn't this part be common for both _execute functions?

@tapishj-splunk tapishj-splunk force-pushed the msankowska/PSAAS-24763-porting_HTTP_to_SDK branch from a7a9822 to ee75fbf Compare October 13, 2025 18:27
Comment on lines +133 to +142
if public_cert_data:
with tempfile.NamedTemporaryFile(delete=False) as f_pub:
f_pub.write(public_cert_data.encode("utf-8"))
public_cert_path = f_pub.name

if private_key_data:
with tempfile.NamedTemporaryFile(delete=False) as f_priv:
f_priv.write(private_key_data.encode("utf-8"))
private_key_path = f_priv.name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think cert based required both public and private keys to be not null. We should raise if both aren't a non empty string

@tapishj-splunk
Copy link
Copy Markdown
Contributor

Need to fix merge conflicts and address 2 comments before merge. Ideally this should be a separate release from the main sdkfication major release.

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