Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: add data source query policy definition (#12985)
boojack9b6ba2757f5f
diff --git a/proto/store/policy.proto b/proto/store/policy.protoindex 4c32ce8de1..c75ba7b497 100644--- a/proto/store/policy.proto+++ b/proto/store/policy.proto@@ -135,3 +135,15 @@ message DisableCopyDataPolicy {message RestrictIssueCreationForSQLReviewPolicy {bool disallow = 1;}++// DataSourceQueryPolicy is the policy configuration for data source query.+message DataSourceQueryPolicy {+ enum Restricton {+ RESTRICTION_UNSPECIFIED = 0;+ // Allow to query admin data sources when there is no read-only data source.+ FALLBACK = 1;+ // Disallow to query admin data sources.+ DISALLOW = 2;+ }+ Restricton admin_data_source_restriction = 1;+}diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.protoindex 8c6c8cf256..ce2b98a346 100644--- a/proto/v1/org_policy_service.proto+++ b/proto/v1/org_policy_service.proto@@ -215,6 +215,7 @@ message Policy {MaskingExceptionPolicy masking_exception_policy = 18;RestrictIssueCreationForSQLReviewPolicy restrict_issue_creation_for_sql_review_policy = 20;TagPolicy tag_policy = 21;+ DataSourceQueryPolicy data_source_query_policy = 22;}bool enforce = 13;@@ -342,3 +343,14 @@ message TagPolicy {// for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}"map<string, string> tags = 1;}++message DataSourceQueryPolicy {+ enum Restricton {+ RESTRICTION_UNSPECIFIED = 0;+ // Allow to query admin data sources when there is no read-only data source.+ FALLBACK = 1;+ // Disallow to query admin data sources.+ DISALLOW = 2;+ }+ Restricton admin_data_source_restriction = 1;+}