Skip to content

Conversation

juskeeratanand
Copy link

@juskeeratanand juskeeratanand commented Sep 25, 2025

This PR implements the work done here to add the ability to authenticate against AWS in the python client.

This is done by the client using AWS credentials to sign a request to GetCallerIdentity and then sending that signed proof to Datadog for validation. Read more about this process here. In this PR, we add the proof generation to the datadog client and add the ability to pass that token on subsequent requests.

@juskeeratanand juskeeratanand changed the title changed template files + generate [DELA-208] Adding delegated token authentication in python client Sep 25, 2025
@juskeeratanand juskeeratanand marked this pull request as ready for review September 29, 2025 20:27
@juskeeratanand juskeeratanand requested review from a team as code owners September 29, 2025 20:27
@juskeeratanand juskeeratanand requested a review from a team September 29, 2025 20:47
@juskeeratanand juskeeratanand marked this pull request as draft September 30, 2025 17:33
@juskeeratanand juskeeratanand marked this pull request as ready for review September 30, 2025 18:28
Copy link

@urnfdog urnfdog left a comment

Choose a reason for hiding this comment

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

WIP, just a couple comments.

:param headers: Header parameters dict to be updated.
:raises: ApiValueError if delegated token authentication fails
"""
from datetime import datetime
Copy link

Choose a reason for hiding this comment

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

Thought: Is this necessary, or can it be rolled up into a more global import?

:return: User agent string
"""
import platform
Copy link

Choose a reason for hiding this comment

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

Thought: Do we need this import at the function level?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants