Skip to content
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

Improved Exemptions Format: Update Get-Exemptions, Build-Documentations and Export-PolicyResources #529

Open
techlake opened this issue Apr 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@techlake
Copy link
Contributor

techlake commented Apr 5, 2024

Idea

In addition to the new way of specifying Exemptions via a policyDefinitionId/Name, also allow for a list of scopes to be entered.

  • CSV: each cell with comma separated list, each containing ":
  • JSON:
{
    "policyDefinitionName": "my-custom-policy-name",
    "scopeList": [
        {
            "shortName": "sta-0123",
            "scope": "<scope>",
        },
        {}
    ]
}

The resulting name will be as follows:

  • name = {{name-in-definition}}-{{short-name}}-{{assignment-name}} (limit 64 characters)
  • displayName = {{displayName-in-definition}}-{{short-name}}-{{assignment-name}} (limit 128 characters)
  • description = {{description-in-definition}}-{{short-name}}-{{assignment-name}} (limit 512 characters)

Additionally, EPAC will inject metadata to assist Get-Exemptions to retrieve it as a full round trip:

{
    "metadata": {
        "epac-details": {
            "name": "name-in-definition",
            "displayName": "displayName-in-definition",
            "description": "description-in-definition",
            "scopeShortName": "short-name-in-definition"
        }
    }
}

AB#44052

@techlake techlake self-assigned this Apr 5, 2024
@techlake techlake added the enhancement New feature or request label Apr 5, 2024
@techlake techlake mentioned this issue May 7, 2024
@apybar
Copy link
Collaborator

apybar commented Aug 14, 2024

Adding to backlog

@apybar apybar assigned apybar and unassigned techlake Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants