Skip to content

Conversation

jiangliu
Copy link
Member

No description provided.

The OCI image spec has a section named `Conversion to OCI Runtime
Configuration`, which defines how to generate a default runtime
configuration from an image.

So add more comments to create_runtime_config() by quoting spec
definitions.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Obey the precedence rule defined the OCI image spec when generating
annotations for runtime configuration.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
There are three more annotations defined by the OCI image spec,
so add support for them.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@jiangliu jiangliu marked this pull request as draft April 22, 2022 05:23
Use the safe-path crate to protect from possible path related attacks.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Copy link
Member

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jiangliu - A few comments...


Ok(bundle_config)
PinnedPathBuf::new(bundle_path, BUNDLE_CONFIG)
.context("The path of generated config.json file has changed, possible attack!")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Could you use BUNDLE_CONFIG rather than hard-coding config.json.
  • I wonder if we want to use a standard "eye catcher" / tag for scenarios like this (maybe use a "SECURITY" prefix in the context message?) That would make errors like this more grep(1)-able.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any update on this?

@jodh-intel
Copy link
Member

Ping @jiangliu.

@jodh-intel
Copy link
Member

Re-ping @jiangliu 😄

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