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

feat(core): NanoTDF resource locator protocol bit mask #107

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

pflynn-virtru
Copy link
Member

This is prep for the incoming changes related to ADR below.

Updated the constructor to mask the first byte with 0xF, ensuring only the first four bits are used for indexing the protocol. This prevents potential out-of-bounds errors when retrieving values from the NanoTDFType.Protocol enum.

Issue: opentdf/platform#1203
Specification: opentdf/spec#40
ADR: opentdf/platform#900

Updated the constructor to mask the first byte with 0xF, ensuring only the first four bits are used for indexing the protocol. This prevents potential out-of-bounds errors when retrieving values from the NanoTDFType.Protocol enum.
@pflynn-virtru pflynn-virtru requested review from a team as code owners August 7, 2024 18:27
@pflynn-virtru pflynn-virtru merged commit 159d2f1 into main Aug 7, 2024
5 checks passed
@pflynn-virtru pflynn-virtru deleted the feature/nano-resource-locator-bit-mask branch August 7, 2024 20:09
mkleene pushed a commit that referenced this pull request Aug 13, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>0.4.0</summary>

## [0.4.0](v0.3.0...v0.4.0)
(2024-08-09)


### Features

* **ci:** Add xtest workflow trigger
([#96](#96))
([bc54b63](bc54b63))
* **core:** NanoTDF resource locator protocol bit mask
([#107](#107))
([159d2f1](159d2f1))
* **sdk:** add mime type.
([#108](#108))
([6c4a27b](6c4a27b))


### Bug Fixes

* make sure we do not deserialize null
([#97](#97))
([9579c42](9579c42))
* policy-binding new structure
([#95](#95))
([b10a61e](b10a61e))
</details>

---
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>
This was referenced Aug 27, 2024
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