File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
plugin/src/main/java/org/opensearch/ml/rest Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1717import java .io .IOException ;
1818import java .util .List ;
1919import java .util .Locale ;
20+ import java .util .Set ;
2021
2122import org .opensearch .cluster .service .ClusterService ;
2223import org .opensearch .common .settings .Settings ;
2829import org .opensearch .ml .common .transport .register .MLRegisterModelRequest ;
2930import org .opensearch .rest .BaseRestHandler ;
3031import org .opensearch .rest .RestRequest ;
32+ import org .opensearch .rest .RestRequestFilter ;
3133import org .opensearch .rest .action .RestToXContentListener ;
3234import org .opensearch .transport .client .node .NodeClient ;
3335
3436import com .google .common .annotations .VisibleForTesting ;
3537import com .google .common .collect .ImmutableList ;
3638
37- public class RestMLRegisterModelAction extends BaseRestHandler {
39+ public class RestMLRegisterModelAction extends BaseRestHandler implements RestRequestFilter {
3840 private static final String ML_REGISTER_MODEL_ACTION = "ml_register_model_action" ;
3941 private final MLFeatureEnabledSetting mlFeatureEnabledSetting ;
4042
@@ -107,4 +109,9 @@ MLRegisterModelRequest getRequest(RestRequest request) throws IOException {
107109 }
108110 return new MLRegisterModelRequest (mlInput );
109111 }
112+
113+ @ Override
114+ public Set <String > getFilteredFields () {
115+ return Set .of ("connector.credential" , "*.Authorization" );
116+ }
110117}
You can’t perform that action at this time.
0 commit comments