-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Get Namespace #756
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
feat: Get Namespace #756
Conversation
…pecific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`.
…pecific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`.
…zation in `authProvider`
Summary of ChangesHello @pflynn-virtru, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the platform's ability to manage namespaces and their associated root certificates, crucial for establishing trust chains. It also refines authorization header handling, ensuring robust communication with authentication providers. The changes include a substantial update to protobuf definitions, introducing new structures for entities and obligations, and marking several older fields and RPCs for deprecation, guiding towards a more streamlined and future-proof API. Additionally, dependency versions are now explicitly pinned to maintain build stability. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a new function getRootCertsFromNamespace and improves the authentication interceptor. The changes are mostly good, but I've found a couple of issues in the new function. It's missing input validation, which could lead to runtime errors, and its logic can be simplified for better readability. I've added comments with suggestions for these. I also noticed a leftover it.only in lib/tests/web/policy/granter.test.ts which should be removed. Finally, it would be beneficial to add unit tests for the new getRootCertsFromNamespace function to ensure its correctness and cover edge cases, as noted in the PR checklist.
|
* - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * Add `obligations` and `rootCerts` attributes to test fixtures and mock data. * Add `getRootCertsFromNamespace` function and include headers initialization in `authProvider` * Add input validation for `getRootCertsFromNamespace` and basic unit tests Signed-off-by: Elizabeth Healy <ehealy@virtru.com>
* feat: Certificates & Obligations (#755) * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * Add `obligations` and `rootCerts` attributes to test fixtures and mock data. Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat: upgrade tdf clients to rewrap v2 proto structure Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * updates to match go behavior Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat: Get Namespace (#756) * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * Add `obligations` and `rootCerts` attributes to test fixtures and mock data. * Add `getRootCertsFromNamespace` function and include headers initialization in `authProvider` * Add input validation for `getRootCertsFromNamespace` and basic unit tests Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat(sdk): initial obligations support in rewrap flow (#748) * feat(core): initial obligations support in rewrap flow * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * wip Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * more wip * rm unused import * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * lint fix Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * tests Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * move file * tdf3 client * cleanup * obligations method on opentdf reader classes * requiredObligations on DecoratedReadableStream in tdf3 * wip: fetch decision if obligations haven't been set on reader * wip * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * bugfix in case of no data attributes leading to no obligations Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * working state Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * fix Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * fix comments * rm example web app hardcoded attributes and obligations * unit tests for getRequiredObligations * improve nullish operators * cleanup * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * improvements * fix * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * improve log * put back package.json changes * pr feedback Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * rm rewrap header for obligations over legacy http for older platforms --------- Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore: release sdk 0.5.0 (#658) * chore(main): release sdk 0.5.0 * Update dependencies --------- Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat(ci): Add a workflow to update the generated code for new protocol/go versions (#767) * add a workflow to update the pbs * trigger on PR * correct platform location * add gh token to env * remove extra file after use * detect changes on regen * test with latest version * remove, test changes * test for signed commits * try with api * push the new branch * use a shorter file name in the message * fix for non existing files * run slightly after midnight to avoid queues Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * handle rewrap response Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * formatting Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * passing unit tests Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * format Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump playwright and @playwright/test in /web-app/tests (#763) Bumps [playwright](https://github.com/microsoft/playwright) to 1.56.1 and updates ancestor dependency [@playwright/test](https://github.com/microsoft/playwright). These dependencies need to be updated together. Updates `playwright` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) Updates `@playwright/test` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) --- updated-dependencies: - dependency-name: playwright dependency-version: 1.56.1 dependency-type: indirect - dependency-name: "@playwright/test" dependency-version: 1.56.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump vite from 6.3.6 to 6.4.1 in /web-app (#764) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.6 to 6.4.1. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/create-vite@6.4.1/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 6.4.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * v1 backwards compatability Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * error handling Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * cleanup Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump playwright and @playwright/test in /web-app (#775) Bumps [playwright](https://github.com/microsoft/playwright) and [@playwright/test](https://github.com/microsoft/playwright). These dependencies needed to be updated together. Updates `playwright` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) Updates `@playwright/test` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) --- updated-dependencies: - dependency-name: playwright dependency-version: 1.56.1 dependency-type: direct:development - dependency-name: "@playwright/test" dependency-version: 1.56.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * suggestions --------- Signed-off-by: Elizabeth Healy <ehealy@virtru.com> Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Paul Flynn <43211074+pflynn-virtru@users.noreply.github.com> Co-authored-by: jakedoublev <jake.vanvorhis@virtru.com> Co-authored-by: Jake Van Vorhis <83739412+jakedoublev@users.noreply.github.com> Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: Certificates & Obligations (#755) * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * Add `obligations` and `rootCerts` attributes to test fixtures and mock data. Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat: upgrade tdf clients to rewrap v2 proto structure Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * updates to match go behavior Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat: Get Namespace (#756) * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * Add `obligations` and `rootCerts` attributes to test fixtures and mock data. * Add `getRootCertsFromNamespace` function and include headers initialization in `authProvider` * Add input validation for `getRootCertsFromNamespace` and basic unit tests Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat(sdk): initial obligations support in rewrap flow (#748) * feat(core): initial obligations support in rewrap flow * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * wip Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * more wip * rm unused import * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * lint fix Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * tests Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * move file * tdf3 client * cleanup * obligations method on opentdf reader classes * requiredObligations on DecoratedReadableStream in tdf3 * wip: fetch decision if obligations haven't been set on reader * wip * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * bugfix in case of no data attributes leading to no obligations Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * working state Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * fix Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * fix comments * rm example web app hardcoded attributes and obligations * unit tests for getRequiredObligations * improve nullish operators * cleanup * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * improvements * fix * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * improve log * put back package.json changes * pr feedback Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * rm rewrap header for obligations over legacy http for older platforms --------- Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore: release sdk 0.5.0 (#658) * chore(main): release sdk 0.5.0 * Update dependencies --------- Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat(ci): Add a workflow to update the generated code for new protocol/go versions (#767) * add a workflow to update the pbs * trigger on PR * correct platform location * add gh token to env * remove extra file after use * detect changes on regen * test with latest version * remove, test changes * test for signed commits * try with api * push the new branch * use a shorter file name in the message * fix for non existing files * run slightly after midnight to avoid queues Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * handle rewrap response Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * formatting Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * passing unit tests Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * format Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump playwright and @playwright/test in /web-app/tests (#763) Bumps [playwright](https://github.com/microsoft/playwright) to 1.56.1 and updates ancestor dependency [@playwright/test](https://github.com/microsoft/playwright). These dependencies need to be updated together. Updates `playwright` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) Updates `@playwright/test` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) --- updated-dependencies: - dependency-name: playwright dependency-version: 1.56.1 dependency-type: indirect - dependency-name: "@playwright/test" dependency-version: 1.56.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump vite from 6.3.6 to 6.4.1 in /web-app (#764) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.6 to 6.4.1. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/create-vite@6.4.1/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 6.4.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * v1 backwards compatability Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * error handling Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * cleanup Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump playwright and @playwright/test in /web-app (#775) Bumps [playwright](https://github.com/microsoft/playwright) and [@playwright/test](https://github.com/microsoft/playwright). These dependencies needed to be updated together. Updates `playwright` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) Updates `@playwright/test` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) --- updated-dependencies: - dependency-name: playwright dependency-version: 1.56.1 dependency-type: direct:development - dependency-name: "@playwright/test" dependency-version: 1.56.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * suggestions --------- Signed-off-by: Elizabeth Healy <ehealy@virtru.com> Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Paul Flynn <43211074+pflynn-virtru@users.noreply.github.com> Co-authored-by: jakedoublev <jake.vanvorhis@virtru.com> Co-authored-by: Jake Van Vorhis <83739412+jakedoublev@users.noreply.github.com> Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com>
* feat(sdk): Move to rewrap v2 request/response format (#774) * feat: Certificates & Obligations (#755) * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * Add `obligations` and `rootCerts` attributes to test fixtures and mock data. Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat: upgrade tdf clients to rewrap v2 proto structure Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * updates to match go behavior Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat: Get Namespace (#756) * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * - Pin `@bufbuild/buf` and `@bufbuild/protoc-gen-es` dependencies to specific versions. - Update copyright notices in `http_pb.ts` and `validate_pb.ts`. * Add `obligations` and `rootCerts` attributes to test fixtures and mock data. * Add `getRootCertsFromNamespace` function and include headers initialization in `authProvider` * Add input validation for `getRootCertsFromNamespace` and basic unit tests Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat(sdk): initial obligations support in rewrap flow (#748) * feat(core): initial obligations support in rewrap flow * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * wip Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * more wip * rm unused import * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * lint fix Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * tests Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * move file * tdf3 client * cleanup * obligations method on opentdf reader classes * requiredObligations on DecoratedReadableStream in tdf3 * wip: fetch decision if obligations haven't been set on reader * wip * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * bugfix in case of no data attributes leading to no obligations Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * working state Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * fix Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * fix comments * rm example web app hardcoded attributes and obligations * unit tests for getRequiredObligations * improve nullish operators * cleanup * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * improvements * fix * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * improve log * put back package.json changes * pr feedback Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> * rm rewrap header for obligations over legacy http for older platforms --------- Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore: release sdk 0.5.0 (#658) * chore(main): release sdk 0.5.0 * Update dependencies --------- Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * feat(ci): Add a workflow to update the generated code for new protocol/go versions (#767) * add a workflow to update the pbs * trigger on PR * correct platform location * add gh token to env * remove extra file after use * detect changes on regen * test with latest version * remove, test changes * test for signed commits * try with api * push the new branch * use a shorter file name in the message * fix for non existing files * run slightly after midnight to avoid queues Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * 🤖 🎨 Autoformat Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * handle rewrap response Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * formatting Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * passing unit tests Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * format Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump playwright and @playwright/test in /web-app/tests (#763) Bumps [playwright](https://github.com/microsoft/playwright) to 1.56.1 and updates ancestor dependency [@playwright/test](https://github.com/microsoft/playwright). These dependencies need to be updated together. Updates `playwright` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) Updates `@playwright/test` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) --- updated-dependencies: - dependency-name: playwright dependency-version: 1.56.1 dependency-type: indirect - dependency-name: "@playwright/test" dependency-version: 1.56.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump vite from 6.3.6 to 6.4.1 in /web-app (#764) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.6 to 6.4.1. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/create-vite@6.4.1/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 6.4.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * v1 backwards compatability Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * error handling Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * cleanup Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * chore(docs): bump playwright and @playwright/test in /web-app (#775) Bumps [playwright](https://github.com/microsoft/playwright) and [@playwright/test](https://github.com/microsoft/playwright). These dependencies needed to be updated together. Updates `playwright` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) Updates `@playwright/test` from 1.50.1 to 1.56.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.50.1...v1.56.1) --- updated-dependencies: - dependency-name: playwright dependency-version: 1.56.1 dependency-type: direct:development - dependency-name: "@playwright/test" dependency-version: 1.56.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * suggestions --------- Signed-off-by: Elizabeth Healy <ehealy@virtru.com> Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Paul Flynn <43211074+pflynn-virtru@users.noreply.github.com> Co-authored-by: jakedoublev <jake.vanvorhis@virtru.com> Co-authored-by: Jake Van Vorhis <83739412+jakedoublev@users.noreply.github.com> Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * additional comments and cleanup Signed-off-by: Elizabeth Healy <ehealy@virtru.com> * format * fix merge --------- Signed-off-by: Elizabeth Healy <ehealy@virtru.com> Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Paul Flynn <43211074+pflynn-virtru@users.noreply.github.com> Co-authored-by: jakedoublev <jake.vanvorhis@virtru.com> Co-authored-by: Jake Van Vorhis <83739412+jakedoublev@users.noreply.github.com> Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>


This pull request introduces a new utility function for retrieving root certificates from a namespace and improves header handling in the authentication interceptor. The most significant changes are grouped below:
New functionality:
getRootCertsFromNamespaceinlib/src/policy/api.tsto fetch root certificates from a namespace using either anamespaceIdorfqn. This function handles network errors and ensures the namespace exists before returning its root certificates.GetNamespaceResponseandCertificatetypes to support the new function inlib/src/policy/api.ts.Improvements to authentication:
createAuthInterceptorfunction inlib/src/platform.tsto include any existing headers from the request when calling the authentication provider, ensuring header consistency.