-
Notifications
You must be signed in to change notification settings - Fork 1
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(sdk): remove hex encoding for segment hash #397
base: main
Are you sure you want to change the base?
Conversation
If these changes look good, signoff on them with:
If they aren't any good, please remove them with:
|
If these changes look good, signoff on them with:
If they aren't any good, please remove them with:
|
@@ -6,4 +6,5 @@ export type Manifest = { | |||
payload: Payload; | |||
encryptionInformation: EncryptionInformation; | |||
assertions: Assertion[]; | |||
tdf_spec_version: string; |
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.
it looks like this is importing this file which specifies version 0.2.0
of the TDF spec. Is that what we should be doing in java?
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.
No, this should somehow be the spec version, which AFAIK is 4.3.0
https://github.com/opentdf/spec/blob/3c5adf29fe9c327b2f85b89e8beee09f0b91d8c7/VERSION
@@ -6,4 +6,5 @@ export type Manifest = { | |||
payload: Payload; | |||
encryptionInformation: EncryptionInformation; | |||
assertions: Assertion[]; | |||
tdf_spec_version: string; |
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.
No, this should somehow be the spec version, which AFAIK is 4.3.0
https://github.com/opentdf/spec/blob/3c5adf29fe9c327b2f85b89e8beee09f0b91d8c7/VERSION
If these changes look good, signoff on them with:
If they aren't any good, please remove them with:
|
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
@@ -1,2 +1,2 @@ | |||
export const version = '0.2.0'; | |||
export const version = '4.3.0'; |
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.
The version
field is set automatically by the bump-version.sh
script, so rename this to either tdfSpecVersion or targetFileFormatVersion or similar
export const version = '4.3.0'; | |
export const version = '0.2.0'; | |
export const tdfSpecVersion = '4.3.0'; |
@@ -269,26 +271,35 @@ async function _generateManifest( | |||
// generate the manifest first, then insert integrity information into it | |||
encryptionInformation: encryptionInformationStr, | |||
assertions: assertions, | |||
tdf_spec_version: version, |
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.
tdf_spec_version: version, | |
tdf_spec_version: tdfSpecVersion, |
@@ -4,6 +4,8 @@ import { DecoratedReadableStream } from './client/DecoratedReadableStream.js'; | |||
import { fetchKasPubKey as fetchKasPubKeyV2, fetchWrappedKey } from '../../src/access.js'; | |||
import { DecryptParams } from './client/builders.js'; | |||
import { AssertionConfig, AssertionKey, AssertionVerificationKeys } from './assertions.js'; | |||
import { version } from './version.js'; |
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.
import { version } from './version.js'; | |
import { tdfSpecVersion } from './version.js'; |
No description provided.