Commit e7718d5
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>1 parent da9f2da commit e7718d5
File tree
5 files changed
+341
-90
lines changed- lib
- src
- access
- nanotdf
- tdf3/src
- tests
5 files changed
+341
-90
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
| |||
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| 53 | + | |
45 | 54 | | |
46 | | - | |
| 55 | + | |
47 | 56 | | |
48 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
49 | 111 | | |
| 112 | + | |
50 | 113 | | |
51 | 114 | | |
52 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
| |||
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| 22 | + | |
17 | 23 | | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
260 | 267 | | |
261 | 268 | | |
262 | 269 | | |
263 | | - | |
264 | | - | |
265 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
266 | 288 | | |
267 | | - | |
268 | | - | |
| 289 | + | |
| 290 | + | |
269 | 291 | | |
270 | | - | |
| 292 | + | |
271 | 293 | | |
272 | | - | |
| 294 | + | |
273 | 295 | | |
274 | 296 | | |
| 297 | + | |
| 298 | + | |
275 | 299 | | |
276 | 300 | | |
277 | 301 | | |
| |||
285 | 309 | | |
286 | 310 | | |
287 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
288 | 332 | | |
289 | 333 | | |
290 | | - | |
291 | 334 | | |
292 | 335 | | |
293 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
0 commit comments