forked from raystack/guardian
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(appeal): introduce appeal metadata (#139)
* feat: support appeal metadata to story metadata in policy details * fix: review fixes * chore: db migration for appeal_metadata_sources column * chore: generate proto * chore: change AppealMetadataSource.Config type to interface{}; encrypt and decrypt at Config level * fix: fix err == nil * fix: squash mapstructure embedded struct * feat: evaluate url if contains "$appeal" string * fix: cherry pick response struct into map * fix: resolve metadata value * refactor: move evaluate value logic to domain * fix: make appealMetadata concurent safe * feat: use context in http fetch * feat!: move metadata sources config into policy.appeal * refactor: revert debugging leftover * lint: fix lint errors * feat: use reflection for evaluating metadata value * feat: remove sensitive values before sending response * fix: nil check for config.Auth in http pkg * test: increase coverage * test: add unit test for appeal metadata * lint: fix lint errors * test: add unit test for policy service * test: add unit test for metadata source encrypt & decrypt --------- Co-authored-by: Ayushi Sharma <[email protected]> Co-authored-by: Rahmat Hidayat <[email protected]>
- Loading branch information
1 parent
3a9dc95
commit 1998a3c
Showing
19 changed files
with
2,455 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.