Backport missing resolvers

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-12-23 10:43:30 +01:00
parent 6291402fb8
commit a2f816ab1a
3 changed files with 886 additions and 74 deletions

View File

@@ -29,6 +29,7 @@ const (
// TrustCenter actions // TrustCenter actions
ActionTrustCenterGet = "core:trust-center:get" ActionTrustCenterGet = "core:trust-center:get"
ActionTrustCenterUpdate = "core:trust-center:update" ActionTrustCenterUpdate = "core:trust-center:update"
ActionTrustCenterGetNda = "core:trust-center:get-nda"
ActionTrustCenterNonDisclosureAgreementUpload = "core:trust-center:upload-nda" ActionTrustCenterNonDisclosureAgreementUpload = "core:trust-center:upload-nda"
ActionTrustCenterNonDisclosureAgreementDelete = "core:trust-center:delete-nda" ActionTrustCenterNonDisclosureAgreementDelete = "core:trust-center:delete-nda"
ActionTrustCenterAccessCreate = "core:trust-center:create-access" ActionTrustCenterAccessCreate = "core:trust-center:create-access"
@@ -36,16 +37,20 @@ const (
// TrustCenterAccess actions // TrustCenterAccess actions
ActionTrustCenterAccessGet = "core:trust-center-access:get" ActionTrustCenterAccessGet = "core:trust-center-access:get"
ActionTrustCenterAccessList = "core:trust-center-access:list"
ActionTrustCenterAccessUpdate = "core:trust-center-access:update" ActionTrustCenterAccessUpdate = "core:trust-center-access:update"
ActionTrustCenterAccessDelete = "core:trust-center-access:delete" ActionTrustCenterAccessDelete = "core:trust-center-access:delete"
// TrustCenterReference actions // TrustCenterReference actions
ActionTrustCenterReferenceList = "core:trust-center-reference:list"
ActionTrustCenterReferenceGetLogoUrl = "core:trust-center-reference:get-logo-url"
ActionTrustCenterReferenceUpdate = "core:trust-center-reference:update" ActionTrustCenterReferenceUpdate = "core:trust-center-reference:update"
ActionTrustCenterReferenceDelete = "core:trust-center-reference:delete" ActionTrustCenterReferenceDelete = "core:trust-center-reference:delete"
// TrustCenterFile actions // TrustCenterFile actions
ActionTrustCenterFileGet = "core:trust-center-file:get" ActionTrustCenterFileGet = "core:trust-center-file:get"
ActionTrustCenterFileList = "core:trust-center-file:list" ActionTrustCenterFileList = "core:trust-center-file:list"
ActionTrustCenterFileGetFileUrl = "core:trust-center-file:get-file-url"
ActionTrustCenterFileUpdate = "core:trust-center-file:update" ActionTrustCenterFileUpdate = "core:trust-center-file:update"
ActionTrustCenterFileDelete = "core:trust-center-file:delete" ActionTrustCenterFileDelete = "core:trust-center-file:delete"
ActionTrustCenterFileCreate = "core:trust-center-file:create" ActionTrustCenterFileCreate = "core:trust-center-file:create"
@@ -67,33 +72,39 @@ const (
// VendorContact actions // VendorContact actions
ActionVendorContactGet = "core:vendor-contact:get" ActionVendorContactGet = "core:vendor-contact:get"
ActionVendorContactList = "core:vendor-contact:list"
ActionVendorContactCreate = "core:vendor-contact:create" ActionVendorContactCreate = "core:vendor-contact:create"
ActionVendorContactUpdate = "core:vendor-contact:update" ActionVendorContactUpdate = "core:vendor-contact:update"
ActionVendorContactDelete = "core:vendor-contact:delete" ActionVendorContactDelete = "core:vendor-contact:delete"
// VendorService actions // VendorService actions
ActionVendorServiceGet = "core:vendor-service:get" ActionVendorServiceGet = "core:vendor-service:get"
ActionVendorServiceList = "core:vendor-service:list"
ActionVendorServiceCreate = "core:vendor-service:create" ActionVendorServiceCreate = "core:vendor-service:create"
ActionVendorServiceUpdate = "core:vendor-service:update" ActionVendorServiceUpdate = "core:vendor-service:update"
ActionVendorServiceDelete = "core:vendor-service:delete" ActionVendorServiceDelete = "core:vendor-service:delete"
// VendorComplianceReport actions // VendorComplianceReport actions
ActionVendorComplianceReportGet = "core:vendor-compliance-report:get" ActionVendorComplianceReportGet = "core:vendor-compliance-report:get"
ActionVendorComplianceReportList = "core:vendor-compliance-report:list"
ActionVendorComplianceReportUpload = "core:vendor-compliance-report:upload" ActionVendorComplianceReportUpload = "core:vendor-compliance-report:upload"
ActionVendorComplianceReportDelete = "core:vendor-compliance-report:delete" ActionVendorComplianceReportDelete = "core:vendor-compliance-report:delete"
// VendorBusinessAssociateAgreement actions // VendorBusinessAssociateAgreement actions
ActionVendorBusinessAssociateAgreementGet = "core:vendor-business-associate-agreement:get"
ActionVendorBusinessAssociateAgreementUpload = "core:vendor-business-associate-agreement:upload" ActionVendorBusinessAssociateAgreementUpload = "core:vendor-business-associate-agreement:upload"
ActionVendorBusinessAssociateAgreementUpdate = "core:vendor-business-associate-agreement:update" ActionVendorBusinessAssociateAgreementUpdate = "core:vendor-business-associate-agreement:update"
ActionVendorBusinessAssociateAgreementDelete = "core:vendor-business-associate-agreement:delete" ActionVendorBusinessAssociateAgreementDelete = "core:vendor-business-associate-agreement:delete"
// VendorDataPrivacyAgreement actions // VendorDataPrivacyAgreement actions
ActionVendorDataPrivacyAgreementGet = "core:vendor-data-privacy-agreement:get"
ActionVendorDataPrivacyAgreementUpload = "core:vendor-data-privacy-agreement:upload" ActionVendorDataPrivacyAgreementUpload = "core:vendor-data-privacy-agreement:upload"
ActionVendorDataPrivacyAgreementUpdate = "core:vendor-data-privacy-agreement:update" ActionVendorDataPrivacyAgreementUpdate = "core:vendor-data-privacy-agreement:update"
ActionVendorDataPrivacyAgreementDelete = "core:vendor-data-privacy-agreement:delete" ActionVendorDataPrivacyAgreementDelete = "core:vendor-data-privacy-agreement:delete"
// VendorRiskAssessment actions // VendorRiskAssessment actions
ActionVendorRiskAssessmentCreate = "core:vendor-risk-assessment:create" ActionVendorRiskAssessmentCreate = "core:vendor-risk-assessment:create"
ActionVendorRiskAssessmentList = "core:vendor-risk-assessment:list"
// Framework actions // Framework actions
ActionFrameworkGet = "core:framework:get" ActionFrameworkGet = "core:framework:get"
@@ -255,18 +266,27 @@ const (
// SlackConnection actions // SlackConnection actions
ActionSlackConnectionList = "core:slack-connection:list" ActionSlackConnectionList = "core:slack-connection:list"
// DataProtectionImpactAssessment actions
ActionDataProtectionImpactAssessmentList = "core:data-protection-impact-assessment:list" ActionDataProtectionImpactAssessmentList = "core:data-protection-impact-assessment:list"
ActionDataProtectionImpactAssessmentGet = "core:data-protection-impact-assessment:get"
ActionDataProtectionImpactAssessmentCreate = "core:data-protection-impact-assessment:create" ActionDataProtectionImpactAssessmentCreate = "core:data-protection-impact-assessment:create"
ActionDataProtectionImpactAssessmentUpdate = "core:data-protection-impact-assessment:update" ActionDataProtectionImpactAssessmentUpdate = "core:data-protection-impact-assessment:update"
ActionDataProtectionImpactAssessmentDelete = "core:data-protection-impact-assessment:delete" ActionDataProtectionImpactAssessmentDelete = "core:data-protection-impact-assessment:delete"
// TransferImpactAssessment actions
ActionTransferImpactAssessmentList = "core:transfer-impact-assessment:list" ActionTransferImpactAssessmentList = "core:transfer-impact-assessment:list"
ActionTransferImpactAssessmentGet = "core:transfer-impact-assessment:get"
ActionTransferImpactAssessmentCreate = "core:transfer-impact-assessment:create" ActionTransferImpactAssessmentCreate = "core:transfer-impact-assessment:create"
ActionTransferImpactAssessmentUpdate = "core:transfer-impact-assessment:update" ActionTransferImpactAssessmentUpdate = "core:transfer-impact-assessment:update"
ActionTransferImpactAssessmentDelete = "core:transfer-impact-assessment:delete" ActionTransferImpactAssessmentDelete = "core:transfer-impact-assessment:delete"
// TrustCenterDocumentAccess actions
ActionTrustCenterDocumentAccessList = "core:trust-center-document-access:list"
// DataProtectionOfficer actions
ActionDataProtectionOfficerList = "core:data-protection-officer:list" ActionDataProtectionOfficerList = "core:data-protection-officer:list"
// RightsRequest actions
ActionRightsRequesList = "core:rights-request:list" ActionRightsRequesList = "core:rights-request:list"
ActionRightsRequestGet = "core:rights-request:get" ActionRightsRequestGet = "core:rights-request:get"

View File

@@ -50,9 +50,12 @@ var ViewerPolicy = policy.NewPolicy(
policy.Allow( policy.Allow(
ActionPeopleGet, ActionPeopleList, ActionPeopleGet, ActionPeopleList,
ActionVendorGet, ActionVendorList, ActionVendorGet, ActionVendorList,
ActionVendorContactGet, ActionVendorContactGet, ActionVendorContactList,
ActionVendorServiceGet, ActionVendorServiceGet, ActionVendorServiceList,
ActionVendorComplianceReportGet, ActionVendorComplianceReportGet, ActionVendorComplianceReportList,
ActionVendorBusinessAssociateAgreementGet,
ActionVendorDataPrivacyAgreementGet,
ActionVendorRiskAssessmentList,
ActionFrameworkGet, ActionFrameworkList, ActionFrameworkGet, ActionFrameworkList,
ActionControlList, ActionControlList,
ActionMeasureGet, ActionMeasureList, ActionMeasureGet, ActionMeasureList,
@@ -69,7 +72,9 @@ var ViewerPolicy = policy.NewPolicy(
ActionNonconformityList, ActionNonconformityList,
ActionObligationList, ActionObligationList,
ActionContinualImprovementList, ActionContinualImprovementList,
ActionProcessingActivityList, ActionProcessingActivityGet, ActionProcessingActivityList,
ActionDataProtectionImpactAssessmentGet,
ActionTransferImpactAssessmentGet, ActionTransferImpactAssessmentList,
ActionSnapshotList, ActionSnapshotList,
ActionMeetingGet, ActionMeetingList, ActionMeetingGet, ActionMeetingList,
ActionFileGet, ActionFileDownloadUrl, ActionFileGet, ActionFileDownloadUrl,
@@ -79,8 +84,10 @@ var ViewerPolicy = policy.NewPolicy(
// TrustCenter read actions // TrustCenter read actions
policy.Allow( policy.Allow(
ActionTrustCenterGet, ActionTrustCenterGet,
ActionTrustCenterAccessGet, ActionTrustCenterAccessGet, ActionTrustCenterAccessList,
ActionTrustCenterFileGet, ActionTrustCenterFileList, ActionTrustCenterDocumentAccessList,
ActionTrustCenterFileGet, ActionTrustCenterFileList, ActionTrustCenterFileGetFileUrl,
ActionTrustCenterReferenceList, ActionTrustCenterReferenceGetLogoUrl,
).WithSID("trust-center-read-access"), ).WithSID("trust-center-read-access"),
// CustomDomain read actions // CustomDomain read actions
@@ -111,9 +118,12 @@ var AuditorPolicy = policy.NewPolicy(
policy.Allow( policy.Allow(
ActionPeopleGet, ActionPeopleList, ActionPeopleGet, ActionPeopleList,
ActionVendorGet, ActionVendorList, ActionVendorGet, ActionVendorList,
ActionVendorContactGet, ActionVendorContactGet, ActionVendorContactList,
ActionVendorServiceGet, ActionVendorServiceGet, ActionVendorServiceList,
ActionVendorComplianceReportGet, ActionVendorComplianceReportGet, ActionVendorComplianceReportList,
ActionVendorBusinessAssociateAgreementGet,
ActionVendorDataPrivacyAgreementGet,
ActionVendorRiskAssessmentList,
ActionFrameworkGet, ActionFrameworkList, ActionFrameworkGet, ActionFrameworkList,
ActionControlList, ActionControlList,
ActionMeasureGet, ActionMeasureList, ActionMeasureGet, ActionMeasureList,
@@ -129,7 +139,9 @@ var AuditorPolicy = policy.NewPolicy(
ActionNonconformityList, ActionNonconformityList,
ActionObligationList, ActionObligationList,
ActionContinualImprovementList, ActionContinualImprovementList,
ActionProcessingActivityList, ActionProcessingActivityGet, ActionProcessingActivityList,
ActionDataProtectionImpactAssessmentGet,
ActionTransferImpactAssessmentGet, ActionTransferImpactAssessmentList,
ActionSnapshotList, ActionSnapshotList,
ActionMeetingGet, ActionMeetingList, ActionMeetingGet, ActionMeetingList,
ActionFileGet, ActionFileDownloadUrl, ActionFileGet, ActionFileDownloadUrl,

File diff suppressed because it is too large Load Diff