guardian icon indicating copy to clipboard operation
guardian copied to clipboard

Getting 3 times slack notification for same resource reminder

Open singhvikash11 opened this issue 2 years ago • 2 comments

Description For the same resource expiration guardian send 3 times notification, I am guessing the reordering of var notifications can cause issues.

singhvikash11 avatar Nov 17 '22 10:11 singhvikash11

This is a misconfiguration issue from the deployment side due to multiple configurations that need to be set to disable one job -

In code, JobConfig.Enabled is set to true by default (for backward compatibility)

and while checking for jobs that need to be enabled in the server, we check for both access and grants jobs enabled for backward compatibility.

This would necessitate disabling both if we want to run these jobs outside server as part of deployment.

JOBS:
  FETCH_RESOURCES:
    Enabled: false
    Interval: "*/1 * * * *"
  REVOKE_EXPIRED_ACCESS:
    Enabled: false
    Interval: "*/1 * * * *"
  REVOKE_EXPIRED_GRANTS:
    Enabled: false
  EXPIRING_ACCESS_NOTIFICATION:
    Enabled: false
    Interval: "*/1 * * * *"
  EXPIRING_GRANT_NOTIFICATION:
    Enabled: false

We should consider if we can deprecate these backward compatibilities and have only one config moving forward and have JobConfig.Enabled set to false by default.

@rahmatrhd @haveiss @mabdh @utsav-agarwal

bsushmith avatar Nov 21 '22 04:11 bsushmith

@singhvikash11 I would suggest to redact some sensitive data from the screenshot, e.g. url, bq project name

mabdh avatar Nov 21 '22 04:11 mabdh