Skip to content

Commit

Permalink
Merge pull request #932 from wso2/feature-governance
Browse files Browse the repository at this point in the history
Improve governance blocking usecase
  • Loading branch information
AnuGayan authored Feb 21, 2025
2 parents 0ba4c89 + 86a49c6 commit d0b4fda
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 2,198 deletions.
28 changes: 20 additions & 8 deletions portals/admin/src/main/webapp/site/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
"AdminPages.Organizations.List.addButtonProps.title": "Register Organization",
"AdminPages.Organizations.List.addButtonProps.triggerButtonText": "Register Organization",
"AdminPages.Organizations.List.empty.content.organization": "Manage your organizations by registering new organizations or updating existing entries.",
"AdminPages.Organizations.List.empty.content.organization.no.orguser": "Users who belong to an organization can manage their organizations by registering new organizations or updating existing entries.",
"AdminPages.Organizations.List.empty.title.organization": "Organizations",
"AdminPages.Organizations.List.search.default": "Search by Organization Name",
"AdminPages.Organizations.List.title.organizations": "Organizations",
Expand Down Expand Up @@ -250,7 +251,7 @@
"AiVendors.AddEditAiVendor.is.empty.error.connectorType": "Connector type is required.",
"AiVendors.AddEditAiVendor.is.empty.error.inputSource": "Input source is required.",
"AiVendors.AddEditAiVendor.modelList": "Model List",
"AiVendors.AddEditAiVendor.modelList.description": "List down AI/LLM Vendor supported model list",
"AiVendors.AddEditAiVendor.modelList.description": "AI/LLM Vendor supported model list",
"AiVendors.AddEditAiVendor.modelList.help": "Type available models and press enter/return to add them.",
"AiVendors.AddEditAiVendor.modelList.placeholder": "Type Model name and press Enter",
"AiVendors.AddEditAiVendor.title.edit": "AI/LLM Vendor - Edit",
Expand All @@ -270,8 +271,8 @@
"Api.Provider": "Provider",
"Api.Version": "Version",
"Api.organization.dropdown.tooltip": "Organization ID assigned by the External Identity Provider.",
"Apis.Details.Compliance.unapplied": "Unapplied",
"Apis.Details.Configurations.organizations": "Organizations",
"Apis.Details.Configurations.organizations.empty": "No Organizations Registered.",
"Apis.Details.Configurations.organizations.placeholder.text": "Search Organizations",
"Apis.Details.Scopes.CreateScope.roles.help": "Enter a valid role and press `Enter`.",
"Apis.Details.Scopes.permission.status.allow": "Allow",
Expand Down Expand Up @@ -477,6 +478,8 @@
"Governance.Overview.APICompliance.PolicyAdherence.empty.helper": "No governance policies have been applied to this API.",
"Governance.Overview.APICompliance.PolicyAdherence.empty.title": "No Policies Applied",
"Governance.Overview.APICompliance.PolicyAdherence.followed.count": "{followed}/{total} Followed",
"Governance.Overview.APICompliance.PolicyAdherence.not.applied": "N/A - Policy not applied",
"Governance.Overview.APICompliance.PolicyAdherence.pending": "N/A - Waiting for policy evaluation",
"Governance.Overview.APICompliance.RuleViolation.column.description": "Description",
"Governance.Overview.APICompliance.RuleViolation.column.message": "Message",
"Governance.Overview.APICompliance.RuleViolation.column.path": "Path",
Expand All @@ -502,7 +505,11 @@
"Governance.Overview.APICompliance.empty.helper": "Create APIs to start evaluating their compliance.",
"Governance.Overview.APICompliance.followed.count": "{followed}/{total} Followed",
"Governance.Overview.APICompliance.no.policies": "N/A - No policies to evaluate",
"Governance.Overview.APICompliance.pending": "N/A - Waiting for policy evaluation",
"Governance.Overview.Compliance.api.owner": "API Owner: {owner}",
"Governance.Overview.Compliance.back.to.overview": "Back to Overview",
"Governance.Overview.Compliance.check.progress": "Compliance Check in Progress",
"Governance.Overview.Compliance.check.progress.message": "The compliance check is currently in progress. This may take a few moments.",
"Governance.Overview.Compliance.failed": "Failed",
"Governance.Overview.Compliance.passed": "Passed",
"Governance.Overview.Compliance.policy.adherence.summary": "Policy Adherence Summary",
Expand All @@ -521,6 +528,7 @@
"Governance.Overview.Summary.api.compliant": "Compliant ({count})",
"Governance.Overview.Summary.api.non.compliant": "Non-Compliant ({count})",
"Governance.Overview.Summary.api.not.applicable": "Not Applicable ({count})",
"Governance.Overview.Summary.api.pending": "Pending ({count})",
"Governance.Overview.Summary.policy.adherence": "Policy Adherence",
"Governance.Overview.Summary.policy.adherence.details": "Policy Adherence Details",
"Governance.Overview.Summary.policy.followed": "Followed ({count})",
Expand All @@ -532,6 +540,8 @@
"Governance.Policies.AddEdit.action.block": "Block",
"Governance.Policies.AddEdit.action.cancel": "Cancel",
"Governance.Policies.AddEdit.action.config.title": "Action Configuration",
"Governance.Policies.AddEdit.action.create.update.info": "Governance rule violations in the API Create and API Update states use the Notify action by default for all severity levels (Error, Warn, Info).",
"Governance.Policies.AddEdit.action.edit.disabled.tooltip": "Cannot edit as only notify action is allowed",
"Governance.Policies.AddEdit.action.governedState": "Governed State",
"Governance.Policies.AddEdit.action.notify": "Notify",
"Governance.Policies.AddEdit.action.save": "Save",
Expand Down Expand Up @@ -567,13 +577,13 @@
"Governance.Policies.AddEdit.form.update.btn": "Update",
"Governance.Policies.AddEdit.general.details": "General Details",
"Governance.Policies.AddEdit.general.details.description": "Provide name and description of the policy.",
"Governance.Policies.AddEdit.labels.applyAll": "Apply to all APIs",
"Governance.Policies.AddEdit.labels.applyNone": "Apply to none",
"Governance.Policies.AddEdit.labels.applySpecific": "Apply to APIs with specific labels",
"Governance.Policies.AddEdit.labels.description": "Choose whether to apply this policy to all APIs or only to APIs with specific labels",
"Governance.Policies.AddEdit.labels.helper": "Select one or more labels to determine which APIs this policy applies to",
"Governance.Policies.AddEdit.labels.applyAll": "All APIs",
"Governance.Policies.AddEdit.labels.applyNone": "None",
"Governance.Policies.AddEdit.labels.applySpecific": "APIs with specific labels",
"Governance.Policies.AddEdit.labels.description": "Choose whether to attach this policy to all APIs or only to APIs with specific labels",
"Governance.Policies.AddEdit.labels.helper": "Select one or more labels to determine which APIs this policy attaches to",
"Governance.Policies.AddEdit.labels.input": "Select Labels",
"Governance.Policies.AddEdit.labels.title": "Applicability",
"Governance.Policies.AddEdit.labels.title": "Attachment",
"Governance.Policies.AddEdit.rulesets.description": "Search and select rulesets to include in the policy. Selected rulesets will appear above the search bar.",
"Governance.Policies.AddEdit.rulesets.empty": "No rulesets available",
"Governance.Policies.AddEdit.rulesets.noSearchResults": "No rulesets found matching your search",
Expand All @@ -594,6 +604,7 @@
"Governance.Policies.List.title": "Governance Policies",
"Governance.Rulesets.AddEdit.add.success": "Ruleset Added Successfully",
"Governance.Rulesets.AddEdit.button.create": "Create",
"Governance.Rulesets.AddEdit.button.download": "Download",
"Governance.Rulesets.AddEdit.button.update": "Update",
"Governance.Rulesets.AddEdit.button.upload": "Upload File",
"Governance.Rulesets.AddEdit.confirm.overwrite.cancel": "Cancel",
Expand All @@ -602,6 +613,7 @@
"Governance.Rulesets.AddEdit.confirm.overwrite.title": "Confirm Overwrite",
"Governance.Rulesets.AddEdit.content.description": "Define the ruleset content in YAML or JSON format",
"Governance.Rulesets.AddEdit.content.title": "Ruleset Content",
"Governance.Rulesets.AddEdit.download.empty": "No content to download",
"Governance.Rulesets.AddEdit.edit.success": "Ruleset Updated Successfully",
"Governance.Rulesets.AddEdit.error.loading": "Error loading ruleset",
"Governance.Rulesets.AddEdit.file.read.error": "Error reading file",
Expand Down
28 changes: 20 additions & 8 deletions portals/admin/src/main/webapp/site/public/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
"AdminPages.Organizations.List.addButtonProps.title": "Register Organization",
"AdminPages.Organizations.List.addButtonProps.triggerButtonText": "Register Organization",
"AdminPages.Organizations.List.empty.content.organization": "Manage your organizations by registering new organizations or updating existing entries.",
"AdminPages.Organizations.List.empty.content.organization.no.orguser": "Users who belong to an organization can manage their organizations by registering new organizations or updating existing entries.",
"AdminPages.Organizations.List.empty.title.organization": "Organizations",
"AdminPages.Organizations.List.search.default": "Search by Organization Name",
"AdminPages.Organizations.List.title.organizations": "Organizations",
Expand Down Expand Up @@ -250,7 +251,7 @@
"AiVendors.AddEditAiVendor.is.empty.error.connectorType": "Connector type is required.",
"AiVendors.AddEditAiVendor.is.empty.error.inputSource": "Input source is required.",
"AiVendors.AddEditAiVendor.modelList": "Model List",
"AiVendors.AddEditAiVendor.modelList.description": "List down AI/LLM Vendor supported model list",
"AiVendors.AddEditAiVendor.modelList.description": "AI/LLM Vendor supported model list",
"AiVendors.AddEditAiVendor.modelList.help": "Type available models and press enter/return to add them.",
"AiVendors.AddEditAiVendor.modelList.placeholder": "Type Model name and press Enter",
"AiVendors.AddEditAiVendor.title.edit": "AI/LLM Vendor - Edit",
Expand All @@ -270,8 +271,8 @@
"Api.Provider": "Provider",
"Api.Version": "Version",
"Api.organization.dropdown.tooltip": "Organization ID assigned by the External Identity Provider.",
"Apis.Details.Compliance.unapplied": "Unapplied",
"Apis.Details.Configurations.organizations": "Organizations",
"Apis.Details.Configurations.organizations.empty": "No Organizations Registered.",
"Apis.Details.Configurations.organizations.placeholder.text": "Search Organizations",
"Apis.Details.Scopes.CreateScope.roles.help": "Enter a valid role and press `Enter`.",
"Apis.Details.Scopes.permission.status.allow": "Allow",
Expand Down Expand Up @@ -477,6 +478,8 @@
"Governance.Overview.APICompliance.PolicyAdherence.empty.helper": "No governance policies have been applied to this API.",
"Governance.Overview.APICompliance.PolicyAdherence.empty.title": "No Policies Applied",
"Governance.Overview.APICompliance.PolicyAdherence.followed.count": "{followed}/{total} Followed",
"Governance.Overview.APICompliance.PolicyAdherence.not.applied": "N/A - Policy not applied",
"Governance.Overview.APICompliance.PolicyAdherence.pending": "N/A - Waiting for policy evaluation",
"Governance.Overview.APICompliance.RuleViolation.column.description": "Description",
"Governance.Overview.APICompliance.RuleViolation.column.message": "Message",
"Governance.Overview.APICompliance.RuleViolation.column.path": "Path",
Expand All @@ -502,7 +505,11 @@
"Governance.Overview.APICompliance.empty.helper": "Create APIs to start evaluating their compliance.",
"Governance.Overview.APICompliance.followed.count": "{followed}/{total} Followed",
"Governance.Overview.APICompliance.no.policies": "N/A - No policies to evaluate",
"Governance.Overview.APICompliance.pending": "N/A - Waiting for policy evaluation",
"Governance.Overview.Compliance.api.owner": "API Owner: {owner}",
"Governance.Overview.Compliance.back.to.overview": "Back to Overview",
"Governance.Overview.Compliance.check.progress": "Compliance Check in Progress",
"Governance.Overview.Compliance.check.progress.message": "The compliance check is currently in progress. This may take a few moments.",
"Governance.Overview.Compliance.failed": "Failed",
"Governance.Overview.Compliance.passed": "Passed",
"Governance.Overview.Compliance.policy.adherence.summary": "Policy Adherence Summary",
Expand All @@ -521,6 +528,7 @@
"Governance.Overview.Summary.api.compliant": "Compliant ({count})",
"Governance.Overview.Summary.api.non.compliant": "Non-Compliant ({count})",
"Governance.Overview.Summary.api.not.applicable": "Not Applicable ({count})",
"Governance.Overview.Summary.api.pending": "Pending ({count})",
"Governance.Overview.Summary.policy.adherence": "Policy Adherence",
"Governance.Overview.Summary.policy.adherence.details": "Policy Adherence Details",
"Governance.Overview.Summary.policy.followed": "Followed ({count})",
Expand All @@ -532,6 +540,8 @@
"Governance.Policies.AddEdit.action.block": "Block",
"Governance.Policies.AddEdit.action.cancel": "Cancel",
"Governance.Policies.AddEdit.action.config.title": "Action Configuration",
"Governance.Policies.AddEdit.action.create.update.info": "Governance rule violations in the API Create and API Update states use the Notify action by default for all severity levels (Error, Warn, Info).",
"Governance.Policies.AddEdit.action.edit.disabled.tooltip": "Cannot edit as only notify action is allowed",
"Governance.Policies.AddEdit.action.governedState": "Governed State",
"Governance.Policies.AddEdit.action.notify": "Notify",
"Governance.Policies.AddEdit.action.save": "Save",
Expand Down Expand Up @@ -567,13 +577,13 @@
"Governance.Policies.AddEdit.form.update.btn": "Update",
"Governance.Policies.AddEdit.general.details": "General Details",
"Governance.Policies.AddEdit.general.details.description": "Provide name and description of the policy.",
"Governance.Policies.AddEdit.labels.applyAll": "Apply to all APIs",
"Governance.Policies.AddEdit.labels.applyNone": "Apply to none",
"Governance.Policies.AddEdit.labels.applySpecific": "Apply to APIs with specific labels",
"Governance.Policies.AddEdit.labels.description": "Choose whether to apply this policy to all APIs or only to APIs with specific labels",
"Governance.Policies.AddEdit.labels.helper": "Select one or more labels to determine which APIs this policy applies to",
"Governance.Policies.AddEdit.labels.applyAll": "All APIs",
"Governance.Policies.AddEdit.labels.applyNone": "None",
"Governance.Policies.AddEdit.labels.applySpecific": "APIs with specific labels",
"Governance.Policies.AddEdit.labels.description": "Choose whether to attach this policy to all APIs or only to APIs with specific labels",
"Governance.Policies.AddEdit.labels.helper": "Select one or more labels to determine which APIs this policy attaches to",
"Governance.Policies.AddEdit.labels.input": "Select Labels",
"Governance.Policies.AddEdit.labels.title": "Applicability",
"Governance.Policies.AddEdit.labels.title": "Attachment",
"Governance.Policies.AddEdit.rulesets.description": "Search and select rulesets to include in the policy. Selected rulesets will appear above the search bar.",
"Governance.Policies.AddEdit.rulesets.empty": "No rulesets available",
"Governance.Policies.AddEdit.rulesets.noSearchResults": "No rulesets found matching your search",
Expand All @@ -594,6 +604,7 @@
"Governance.Policies.List.title": "Governance Policies",
"Governance.Rulesets.AddEdit.add.success": "Ruleset Added Successfully",
"Governance.Rulesets.AddEdit.button.create": "Create",
"Governance.Rulesets.AddEdit.button.download": "Download",
"Governance.Rulesets.AddEdit.button.update": "Update",
"Governance.Rulesets.AddEdit.button.upload": "Upload File",
"Governance.Rulesets.AddEdit.confirm.overwrite.cancel": "Cancel",
Expand All @@ -602,6 +613,7 @@
"Governance.Rulesets.AddEdit.confirm.overwrite.title": "Confirm Overwrite",
"Governance.Rulesets.AddEdit.content.description": "Define the ruleset content in YAML or JSON format",
"Governance.Rulesets.AddEdit.content.title": "Ruleset Content",
"Governance.Rulesets.AddEdit.download.empty": "No content to download",
"Governance.Rulesets.AddEdit.edit.success": "Ruleset Updated Successfully",
"Governance.Rulesets.AddEdit.error.loading": "Error loading ruleset",
"Governance.Rulesets.AddEdit.file.read.error": "Error reading file",
Expand Down
Loading

0 comments on commit d0b4fda

Please sign in to comment.