Skip to content

feat: add grant drift check job & notify result to PD#298

Open
ahmadnaufal wants to merge 9 commits into
mainfrom
feat/grant-drift-check-notify-pd
Open

feat: add grant drift check job & notify result to PD#298
ahmadnaufal wants to merge 9 commits into
mainfrom
feat/grant-drift-check-notify-pd

Conversation

@ahmadnaufal
Copy link
Copy Markdown

No description provided.

@ahmadnaufal ahmadnaufal force-pushed the feat/grant-drift-check-notify-pd branch from 4818474 to cb89845 Compare May 22, 2026 06:49
@ahmadnaufal ahmadnaufal force-pushed the feat/grant-drift-check-notify-pd branch from 584e7c5 to 08003bb Compare May 25, 2026 09:34
return accountTypeRAMUser
}

func (p *provider) listResourceAccess(ctx context.Context, overrideRAMRole string, pc *domain.ProviderConfig, resource *domain.Resource) ([]domain.AccessEntry, error) {
Copy link
Copy Markdown
Collaborator

@anjali9791 anjali9791 Jun 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are fetching this for all users not just bots ?
Is it tested? How much time does it take to complete?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but we'll only provide the distinct resources for all the bots' active grants.
Already tested on a very small set of resources (2 projects, 1 schema, and 3 tables) and each request took less than 5 secs with the current concurrency settings

},
}
if _, err := pagerduty.ManageEventWithContext(ctx, v2event); err != nil {
return fmt.Errorf("sending pagerduty event: %w", err)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we say error sending pagerduty event, it would be easy to look for error keyword when someone does not know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants