You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a local file for a repository signing key, a broken URI syntax currently has to be used in order to provide a relative path: valid file:// URIs will always point to an absolute path: Kiwi interprets file://example.key as pointing to the file /example.key.
Invalid syntax can currently be used to provide a relative path. For example, I am currently using file:image-desc/repository.key to use a key file within my image description directory (image-desc).
Expected behaviour
Only valid URIs should be usable with <signing key="..."/>: file:relative/path/to/file should not be accepted as valid syntax. According to RFC8089, file: URIs only support absolute paths.
The following are examples of valid file URIs:
file:/path/to/file
file:///path/to/file
Using two only two leading slashes (file://path/to/file) is not valid syntax.
Similar to <include>, support for this:// should be added to enable use of key files stored in the image description directory.
Steps to reproduce the behaviour
Add <signing key="file://example.key"/> to a repository in an existing description
Run a build
The build will fail due to not being able to find /example.key.
Change the key path to file:nonexistent/example.key in the XML
Run a build
The build will fail due to not being able to find nonexistent/example.key within the current working directory.
OS and Software information
KIWI version: 9.24.14
Operating system: Ubuntu 20.04
OBS version: n/a
The text was updated successfully, but these errors were encountered:
Problem description
When using a local file for a repository signing key, a broken URI syntax currently has to be used in order to provide a relative path: valid
file://
URIs will always point to an absolute path: Kiwi interpretsfile://example.key
as pointing to the file/example.key
.Invalid syntax can currently be used to provide a relative path. For example, I am currently using
file:image-desc/repository.key
to use a key file within my image description directory (image-desc
).Expected behaviour
Only valid URIs should be usable with
<signing key="..."/>
:file:relative/path/to/file
should not be accepted as valid syntax. According to RFC8089,file:
URIs only support absolute paths.The following are examples of valid file URIs:
file:/path/to/file
file:///path/to/file
Using two only two leading slashes (
file://path/to/file
) is not valid syntax.Similar to
<include>
, support forthis://
should be added to enable use of key files stored in the image description directory.Steps to reproduce the behaviour
<signing key="file://example.key"/>
to a repository in an existing description/example.key
.file:nonexistent/example.key
in the XMLnonexistent/example.key
within the current working directory.OS and Software information
The text was updated successfully, but these errors were encountered: