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

Add CAI Parameters to Image Parameters #83

Merged
merged 8 commits into from
Jun 14, 2023

Conversation

RichardKennedy1
Copy link
Contributor

@RichardKennedy1 RichardKennedy1 commented Jun 5, 2023

Stability should sign image artifacts using the C2PA tool if CAI Parameters are set in the request. This commit creates a new CAI Parameters message, which allows users to specify the type of information to attach as providence data. Currently the only option is to attach the engine id. This message can be optionally included in Image Parameters to get C2PA signing of the returned image artifacts.

Stability should sign image artifacts using the C2PA tool if
CAI Parameters are set in the request. This commit creates a new CAI Parameters
message, which contains the model name and version. This message can be optionally
included in Image Parameters to get C2PA signing of the returned image artifacts.
RichardKennedy1 and others added 3 commits June 5, 2023 16:49
Model name and version can be extracted from the engine id. Consequently,
we should not make it a parameter in the request. Instead CAI Parameters
allows users to specify the type of parameters which can be passed in. Currently
the only option is an enum representing the type of model metadata
which will be attatched to the image.
Richard Kennedy and others added 2 commits June 6, 2023 18:50
This commit also introduces an unspecified enum value as the default.
This will make the code safer in the future while also adhering to
common API guidelines.
src/proto/generation.proto Outdated Show resolved Hide resolved
Richard Kennedy and others added 2 commits June 13, 2023 16:19
@sonarcloud
Copy link

sonarcloud bot commented Jun 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@RichardKennedy1 RichardKennedy1 removed the request for review from cruhl June 14, 2023 18:27
@RichardKennedy1 RichardKennedy1 merged commit 1944724 into main Jun 14, 2023
@RichardKennedy1 RichardKennedy1 deleted the richard/add_support_for_cai branch June 14, 2023 18:31
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.

4 participants