【问题标题】:Inspec title at the beginning in control rb files?在控制 rb 文件的开头检查标题?
【发布时间】:2021-06-21 16:14:57
【问题描述】:

在某些 inspec 配置文件中,标题放在控制 rb 文件的开头是否有更深层次的含义?

inspec
 |-controls
     |-example.rb
     |-meta.rb
 |-libraries
 inspec.yaml

example.rb 文件如下所示:

# copyright: 2015, Chef Software, Inc.

title 'Example' # <- where will this title be displayed or shown?

control 'example-01' do
 title 'title for example-01' # <- this is understandable for me
 ...
end

这个标题“示例”会在某个时候在某个地方给出吗?

【问题讨论】:

    标签: inspec


    【解决方案1】:

    来自inspec docs

    在各种用例中,例如跨不同部门实施 IT 合规性,使用元数据扩展控制变得很方便。每个控件可以定义一个额外的impacttitledesc

    title 不是强制性的,它可以提供额外的信息。

    【讨论】:

    • 这对控件来说是完全正确和可以理解的。我的问题不是针对控件中的标题,而是针对控件之外的标题。
    猜你喜欢
    • 2022-01-20
    • 1970-01-01
    • 1970-01-01
    • 2017-12-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多