Skip to content

Commit

Permalink
Change auth config name
Browse files Browse the repository at this point in the history
  • Loading branch information
vrajat committed Dec 18, 2024
1 parent a5b7c45 commit 696a757
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class ControllerConf extends PinotConfiguration {
public static final String CONTROLLER_BROKER_PROTOCOL = "controller.broker.protocol";
public static final String CONTROLLER_BROKER_PORT_OVERRIDE = "controller.broker.port.override";
public static final String CONTROLLER_BROKER_TLS_PREFIX = "controller.broker.tls";
public static final String CONTROLLER_BROKER_AUTH_PREFIX = "controller.broker.auth";
public static final String CONTROLLER_TLS_PREFIX = "controller.tls";
public static final String CONTROLLER_HOST = "controller.host";
public static final String CONTROLLER_PORT = "controller.port";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public ResponseStoreCleaner(ControllerConf config, PinotHelixResourceManager pin
_executor = executor;
_connectionManager = connectionManager;
_authProvider =
AuthProviderUtils.extractAuthProvider(config, CommonConstants.CursorConfigs.RESPONSE_STORE_AUTH_PREFIX);
AuthProviderUtils.extractAuthProvider(config, ControllerConf.CONTROLLER_BROKER_AUTH_PREFIX);
}

private static long getInitialDelayInSeconds(ControllerConf config) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.apache.pinot.common.utils.FileUploadDownloadClient;
import org.apache.pinot.common.utils.URIUtils;
import org.apache.pinot.common.utils.http.HttpClient;
import org.apache.pinot.controller.ControllerConf;
import org.apache.pinot.controller.helix.ControllerRequestClient;
import org.apache.pinot.spi.config.table.TableType;
import org.apache.pinot.spi.env.PinotConfiguration;
Expand Down Expand Up @@ -75,9 +76,9 @@ protected void overrideControllerConf(Map<String, Object> properties) {
properties.put("controller.segment.fetcher.auth.provider.class", AUTH_PROVIDER_CLASS);
properties.put("controller.segment.fetcher.auth.url", AUTH_URL);
properties.put("controller.segment.fetcher.auth.prefix", AUTH_PREFIX);
properties.put("controller.cluster.response.store.auth.provider.class", AUTH_PROVIDER_CLASS);
properties.put("controller.cluster.response.store.auth.url", AUTH_URL);
properties.put("controller.cluster.response.store.auth.prefix", AUTH_PREFIX);
properties.put(ControllerConf.CONTROLLER_BROKER_AUTH_PREFIX + ".provider.class", AUTH_PROVIDER_CLASS);
properties.put(ControllerConf.CONTROLLER_BROKER_AUTH_PREFIX + ".url", AUTH_URL);
properties.put(ControllerConf.CONTROLLER_BROKER_AUTH_PREFIX + ".prefix", AUTH_PREFIX);
properties.put(CommonConstants.CursorConfigs.RESPONSE_STORE_CLEANER_FREQUENCY_PERIOD, "5m");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,5 @@ public static class CursorConfigs {
public static final String DEFAULT_RESPONSE_STORE_CLEANER_FREQUENCY_PERIOD = "1h";
public static final String RESPONSE_STORE_CLEANER_INITIAL_DELAY =
"controller.cluster.response.store.cleaner.initialDelay";
public static final String RESPONSE_STORE_AUTH_PREFIX = "controller.cluster.response.store.auth";
}
}

0 comments on commit 696a757

Please sign in to comment.