You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "fivetran-kostaszoumpatianos (via GitHub)" <gi...@apache.org> on 2025/08/29 05:10:03 UTC
[PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
fivetran-kostaszoumpatianos opened a new pull request, #2472:
URL: https://github.com/apache/polaris/pull/2472
Fixes: #2471
This PR introduces a `polaris.readiness.ignore-offending-properties` config that accepts a map of properties for which readiness checks are suppressed.
It can be used, for example, as follows:
```
polaris.readiness.ignore-offending-properties=\
polaris.metrics.user-principal-tag.enable-in-api-metrics,\
polaris.features."ALLOW_INSECURE_STORAGE_TYPES",\
polaris.features."SUPPORTED_CATALOG_STORAGE_TYPES"
```
The check performed is case-insesitive.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "fivetran-kostaszoumpatianos (via GitHub)" <gi...@apache.org>.
fivetran-kostaszoumpatianos commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2338881880
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ReadinessConfiguration.java:
##########
@@ -33,4 +34,11 @@ public interface ReadinessConfiguration {
*/
@WithDefault("false")
boolean ignoreSevereIssues();
+
+ /**
+ * Set of properties that, if found to be misconfigured, will be ignored when determining the
+ * production readiness.
+ */
+ @WithDefault("{}")
+ Set<String> ignoreOffendingProperties();
Review Comment:
Because technically the check is based on the offending property and not the issue type. `ignoreIssuesForSelectedOffendingProperties` ? maybe too much?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "fivetran-kostaszoumpatianos (via GitHub)" <gi...@apache.org>.
fivetran-kostaszoumpatianos commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2338925947
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ProductionReadinessChecks.java:
##########
@@ -74,7 +74,14 @@ public void warnOnFailedChecks(
@Observes Startup event,
Instance<ProductionReadinessCheck> checks,
ReadinessConfiguration config) {
- List<Error> errors = checks.stream().flatMap(check -> check.getErrors().stream()).toList();
+ List<Error> errors =
+ checks.stream()
+ .flatMap(check -> check.getErrors().stream())
+ .filter(
+ error ->
+ config.ignoreOffendingProperties().stream()
+ .noneMatch(prop -> prop.equalsIgnoreCase(error.offendingProperty())))
Review Comment:
Filtering based on error ids would also fit well with the naming change that you propose @eric-maynard then we can call the ignore method: `ignoreSelectedIssues` since we will now have a way of filtering by issue. Maybe the parameter hash is a bit too much, for me I would be ok deactivating a check altogether if I know that I have a dangerous config there. It depends on how cautious we want to be.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "fivetran-kostaszoumpatianos (via GitHub)" <gi...@apache.org>.
fivetran-kostaszoumpatianos commented on PR #2472:
URL: https://github.com/apache/polaris/pull/2472#issuecomment-3244414039
@dimas-b @adutra @eric-maynard could you maybe take a look at this PR? thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2316263598
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ProductionReadinessChecks.java:
##########
@@ -74,7 +74,14 @@ public void warnOnFailedChecks(
@Observes Startup event,
Instance<ProductionReadinessCheck> checks,
ReadinessConfiguration config) {
- List<Error> errors = checks.stream().flatMap(check -> check.getErrors().stream()).toList();
+ List<Error> errors =
+ checks.stream()
+ .flatMap(check -> check.getErrors().stream())
+ .filter(
+ error ->
+ config.ignoreOffendingProperties().stream()
+ .noneMatch(prop -> prop.equalsIgnoreCase(error.offendingProperty())))
Review Comment:
This approach LGTM in general. However, WDYT about adding a new "ID" property to `Error`, e.g. `error.getId()`.
The ID could be a static constant for cases where there could only ever be one `Error` instance per "check" code (e.g. `checkUserPrincipalMetricTag`) or it could be a deterministic (hash) function of the "type" plus some parameters (e.g. `checkInsecureStorageSettings` could produce IDs like `storage-17af38` and `storage-46fq98`).
The idea is that admin users should suppress specific error instances, but not "ranges" of errors. This way, if an admin user suppresses one particular check cases, new checks will still be visible when Polaris adds them. The value of `error.offendingProperty()` may still be too broad in some cases.
The "hash" part being deterministic will allow admin users to propagate the same configuration to all their deployment environments. At the same time, it is not easy to guess, which will force the admin user to review what exactly needs to be suppressed. Also, if the meaning of the error changes, we can change the ID, and it will force the admin users to reassess the implications (and re-suppress).
WDYT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2331359478
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ReadinessConfiguration.java:
##########
@@ -33,4 +34,11 @@ public interface ReadinessConfiguration {
*/
@WithDefault("false")
boolean ignoreSevereIssues();
+
+ /**
+ * Set of properties that, if found to be misconfigured, will be ignored when determining the
+ * production readiness.
+ */
+ @WithDefault("{}")
+ Set<String> ignoreOffendingProperties();
Review Comment:
Why the asymmetry between this and `ignoreSevereIssues`? IIUC this is basically a subset of severe (?) issues that the admin wants to configure the readiness check to ignore. Maybe `ignoreSelectIssues`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "fivetran-kostaszoumpatianos (via GitHub)" <gi...@apache.org>.
fivetran-kostaszoumpatianos commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2338925947
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ProductionReadinessChecks.java:
##########
@@ -74,7 +74,14 @@ public void warnOnFailedChecks(
@Observes Startup event,
Instance<ProductionReadinessCheck> checks,
ReadinessConfiguration config) {
- List<Error> errors = checks.stream().flatMap(check -> check.getErrors().stream()).toList();
+ List<Error> errors =
+ checks.stream()
+ .flatMap(check -> check.getErrors().stream())
+ .filter(
+ error ->
+ config.ignoreOffendingProperties().stream()
+ .noneMatch(prop -> prop.equalsIgnoreCase(error.offendingProperty())))
Review Comment:
Filtering based on error ids would also fit well with the naming change that you propose @eric-maynard then we can call the ignore method: `ignoreSelectedIssues` since we will now have a way of filtering by issue. Maybe the parameter hash is a bit too much. For me, I would be ok deactivating a check altogether if I know that I have a dangerous config there. It depends on how cautious we want to be.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2331363607
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ProductionReadinessChecks.java:
##########
@@ -74,7 +74,14 @@ public void warnOnFailedChecks(
@Observes Startup event,
Instance<ProductionReadinessCheck> checks,
ReadinessConfiguration config) {
- List<Error> errors = checks.stream().flatMap(check -> check.getErrors().stream()).toList();
+ List<Error> errors =
+ checks.stream()
+ .flatMap(check -> check.getErrors().stream())
+ .filter(
+ error ->
+ config.ignoreOffendingProperties().stream()
+ .noneMatch(prop -> prop.equalsIgnoreCase(error.offendingProperty())))
Review Comment:
> The idea is that admin users should suppress specific error instances
What would this flow look like, though? Is this to support cases like `I want to allow setting config X, but not Y, and I want to allow setting config Z to A or B but not to C.`? I fear we are at risk of overengineering this a bit. As it is, only admins have access to these configs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #2472:
URL: https://github.com/apache/polaris/pull/2472#issuecomment-3395641426
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2331429047
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ProductionReadinessChecks.java:
##########
@@ -74,7 +74,14 @@ public void warnOnFailedChecks(
@Observes Startup event,
Instance<ProductionReadinessCheck> checks,
ReadinessConfiguration config) {
- List<Error> errors = checks.stream().flatMap(check -> check.getErrors().stream()).toList();
+ List<Error> errors =
+ checks.stream()
+ .flatMap(check -> check.getErrors().stream())
+ .filter(
+ error ->
+ config.ignoreOffendingProperties().stream()
+ .noneMatch(prop -> prop.equalsIgnoreCase(error.offendingProperty())))
Review Comment:
from my POV, this is not so much about config `A=X` or `A=Y`, but more about "Polaris detected something dangerous about X". Now, if the admin user suppresses this warning, I do not want the suppression to automatically hide future warnings about "dangerous Y".
It may be related to some specific config, but may be not. I can imagine running as the `root` OS user falls under the same category of auto-detectable issues.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2472:
URL: https://github.com/apache/polaris/pull/2472#discussion_r2345535100
##########
runtime/service/src/main/java/org/apache/polaris/service/config/ProductionReadinessChecks.java:
##########
@@ -74,7 +74,14 @@ public void warnOnFailedChecks(
@Observes Startup event,
Instance<ProductionReadinessCheck> checks,
ReadinessConfiguration config) {
- List<Error> errors = checks.stream().flatMap(check -> check.getErrors().stream()).toList();
+ List<Error> errors =
+ checks.stream()
+ .flatMap(check -> check.getErrors().stream())
+ .filter(
+ error ->
+ config.ignoreOffendingProperties().stream()
+ .noneMatch(prop -> prop.equalsIgnoreCase(error.offendingProperty())))
Review Comment:
I'd be ok without the parameter hash for a start. However, having a concise but non-predictable error ID is important I think. That is to say, a user suppressing a particular error must first observe the error. It should not be easy to suppress something "proactively" :) At the same time the error ID should not be dependent on the runtime env. (i.e. be the same in all k8s pods, for example). WDYT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Introducing: polaris.readiness.ignore-offending-properties [polaris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #2472: Introducing: polaris.readiness.ignore-offending-properties
URL: https://github.com/apache/polaris/pull/2472
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org