Skip to content

Support parameters in components #555

Open
@bradh

Description

@bradh

User Story:

As an OSCAL component producer, I want to be able to use parameter substitution to populate boilerplate text in components.

Examples of this might be the organisation or system name, which are used over and over. Those could be kept in one (shared) file and imported / resolved for each component. The name of the position / person associated with certain roles might also be candidates for this, which might only appear in the component file.

Goals:

I want to be able to provide literals for substitution into components, similar to (perhaps the same as) the way it works for param in catalog.

As a stretch goal, it might be useful to have conditional / boolean values that can invoke parts of the component based on install options. For example, (SIMP component for Apache)[https://github.com/simp/simp-doc/blob/master/docs/security_mapping/components/apache/mandatory_access_control/control.rst] has this:

When SELinux is enabled in SIMP, Apache is configured to run within a context.
That would be good to avoid, by use of a boolean / configuration value that reflects whether SELinux is enabled.

Dependencies:

Somewhat dependent on component maturation, but otherwise none identified.

Acceptance Criteria

  • All OSCAL website and readme documentation affected by the changes in this issue have been updated. Changes to the OSCAL website can be made in the docs/content directory of your branch.
  • A Pull Request (PR) is submitted that fully addresses the goals of this User Story. This issue is referenced in the PR.
  • The CI-CD build process runs without any reported errors on the PR. This can be confirmed by reviewing that all checks have passed in the PR.
  • Examples showing how this works are included.
    {The items above are general acceptance criteria for all User Stories. Please describe anything else that must be completed for this issue to be considered resolved.}

Metadata

Metadata

Assignees

No one assigned

    Labels

    AgedA label for issues older than 2023-01-01Discussion NeededThis issues needs to be reviewed by the OSCAL development team.Scope: ModelingIssues targeted at development of OSCAL formatsUser Storyclosableenhancementmodel-refactorUsed to mark issues related to model refactoring for the Metaschema v4 transition.

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions