-
Notifications
You must be signed in to change notification settings - Fork 612
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
security: change command line embedding for oiiotool & maketx output #4237
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1952,10 +1952,33 @@ current top image. | |||||||||
are not set, only the first subimage will be changed, or all subimages | ||||||||||
if the `-a` command line flag was used. | ||||||||||
|
||||||||||
.. option:: --nosoftwareattrib | ||||||||||
.. option:: --history | ||||||||||
--no-history | ||||||||||
--nosoftwareattrib | ||||||||||
|
||||||||||
When set, this prevents the normal adjustment of "Software" and | ||||||||||
"ImageHistory" metadata to reflect what :program:`oiiotool` is doing. | ||||||||||
By default, oiiotool writes "OpenImageIO <version>" and a SHA-1 hash of | ||||||||||
the command line as the "Software" metadata in output images. | ||||||||||
|
||||||||||
The `--history` option appends the full command line arguments and appends | ||||||||||
that information to the "ImageHistory" metadata as well. This behavior is | ||||||||||
"opt-in" because some users may find it undesirable for metadata in the | ||||||||||
image to potentially reveal any proprietary information that might have | ||||||||||
been present in the command line arguments. | ||||||||||
|
||||||||||
If the `OIIOTOOL_METADATA_HISTORY` environment variable is set to a | ||||||||||
nonzero integer value, the `--history` option will be enabled by default, | ||||||||||
but can be disabled on the command line with `--no-history`. | ||||||||||
|
||||||||||
The `--nosoftwareattrib` option prevents even the minimal default information | ||||||||||
from being written, so that no information about the software is written | ||||||||||
to any metadata field. | ||||||||||
|
||||||||||
Prior to OpenImageIO 2.5.11, the full information was always written, but | ||||||||||
could be overridden with `--nosoftwareattrib`. Beginning with 2.5.11, the | ||||||||||
default changed only say the software name and version (unless the | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or since "saved" is used later in the sentence in a different way and so could be confusing:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's awkward, I will reword a bit |
||||||||||
`OIIOTOOL_METADATA_HISTORY` environment variable is set), and require the | ||||||||||
new `--history` option to cause the command line arguments to be saved as | ||||||||||
meetadata. | ||||||||||
|
||||||||||
.. option:: --sansattrib | ||||||||||
|
||||||||||
|
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.
Should it be this?
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.
I was assuming people would want this backported to the next monthly patch of the release branch.
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.
So then should it be 2.5.11?
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.
Sorry, I answered that too fast. It shouldn't read 2.5.0 either. It will end up being 2.5.11.