Skip to content

How do you write custom checks for blocks like lifecycle #1675

Discussion options

You must be logged in to vote

Soooooo, for the first one - good news and bad news -

This check does what you want of sorts - but for some reason it requires users, groups to be strings

checks:
  - code: okta-app-must-ignore-groups-users
    description: Ensure groups and users are ignored on okta apps.
    impact: |
      Maintaining groups and users in okta_app_* such as okta_app_saml is deprecated;
      can cause race conditions and side effects.
    resolution: Ignore groups and instead use okta_app_group_assignments
    requiredTypes:
      - resource
    requiredLabels:
      - "okta_app"
      - "okta_app_oauth"
      - "okta_app_saml"
      - "okta_app_swa"
    severity: CRITICAL
    matchSpec:
      name: lif…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mijdavis2
Comment options

Comment options

You must be logged in to vote
1 reply
@mijdavis2
Comment options

Answer selected by mijdavis2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants