Skip to content

Conversation

kpfleming
Copy link
Contributor

A new 'impersonation' package provides a function which can be used to construct a context.Context object containing a Fastly CID. If that context is passed to any of go-fastly's API functions which generate HTTP requests to the Fastly API endpoint, the contained CID will be included in the request.

As noted in the package documentation, impersonation is only available to Fastly employees, it is not usable by customers.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

A new 'impersonation' package provides a function which can be used to
construct a context.Context object containing a Fastly CID. If that
context is passed to any of go-fastly's API functions which generate
HTTP requests to the Fastly API endpoint, the contained CID will be
included in the request.

As noted in the package documentation, impersonation is only available
to Fastly employees, it is not usable by customers.
@kpfleming kpfleming marked this pull request as ready for review July 23, 2025 13:54
@kpfleming kpfleming requested a review from a team as a code owner July 23, 2025 13:54
@kpfleming kpfleming merged commit c6d0554 into fastly:main Jul 23, 2025
4 checks passed
@kpfleming kpfleming deleted the impersonation-context branch July 23, 2025 18:49
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.

2 participants