NIFI-12475 Disabled Bypass Validation by Default in PutMongoRecord

- Updated property description to indicate that bypass validation is a Privilege Action that can cause authorization errors.

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #8139.
This commit is contained in:
exceptionfactory 2023-12-07 08:40:53 -06:00 committed by Pierre Villard
parent f73888e7dd
commit ec3da7144c
No known key found for this signature in database
GPG Key ID: F92A93B30C07C6D5
1 changed files with 6 additions and 2 deletions

View File

@ -115,9 +115,13 @@ public class PutMongoRecord extends AbstractMongoProcessor {
static final PropertyDescriptor BYPASS_VALIDATION = new PropertyDescriptor.Builder() static final PropertyDescriptor BYPASS_VALIDATION = new PropertyDescriptor.Builder()
.name("bypass-validation") .name("bypass-validation")
.displayName("Bypass Validation") .displayName("Bypass Validation")
.description("Bypass schema validation during insert/upsert") .description("""
Enable or disable bypassing document schema validation during insert or update operations.
Bypassing document validation is a Privilege Action in MongoDB.
Enabling this property can result in authorization errors for users with limited privileges.
""")
.allowableValues("True", "False") .allowableValues("True", "False")
.defaultValue("True") .defaultValue("False")
.required(true) .required(true)
.addValidator(StandardValidators.BOOLEAN_VALIDATOR) .addValidator(StandardValidators.BOOLEAN_VALIDATOR)
.build(); .build();