Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): Set token endpoint manually if client creds provided in server sdk_config #1780

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

elizabethhealy
Copy link
Member

Proposed Changes

We run the server sdk in IPC mode so it does not reach out to well-known on instantiation because well-known isnt running yet. This means the token endpoint is never set. So if a service using the server sdk wanted to do a decrypt for example (a request that needs an auth token) they would get an error.
This will manually set the token endpoint on instantiation using the issuer provided in the yaml config.

Checklist

  • I have added or updated unit tests
  • I have added or updated integration tests (if appropriate)
  • I have added or updated documentation

Testing Instructions

@elizabethhealy elizabethhealy marked this pull request as ready for review November 21, 2024 19:38
@elizabethhealy elizabethhealy requested a review from a team as a code owner November 21, 2024 19:38
@strantalis strantalis added this pull request to the merge queue Nov 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 21, 2024
@elizabethhealy elizabethhealy added this pull request to the merge queue Nov 22, 2024
Merged via the queue into main with commit 07a1dbd Nov 22, 2024
21 checks passed
@elizabethhealy elizabethhealy deleted the set-tokenendpoint-for-sdk-config branch November 22, 2024 17:40
github-merge-queue bot pushed a commit that referenced this pull request Nov 27, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.4.30](service/v0.4.29...service/v0.4.30)
(2024-11-27)


### Features

* **core:** Introduce ERS mode, ability to connect to remote ERS
([#1735](#1735))
([a118316](a118316))
* **policy:** limit/offset throughout LIST service RPCs/db
([#1669](#1669))
([ec46a3a](ec46a3a)),
closes [#55](#55)


### Bug Fixes

* **core:** Autobump service
([#1789](#1789))
([ff7c6f3](ff7c6f3))
* **core:** Set token endpoint manually if client creds provided in
server sdk_config
([#1780](#1780))
([07a1dbd](07a1dbd))
* properly set casbin authz policy
([#1776](#1776))
([d4b501c](d4b501c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com>
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