Skip to content

Generate documentation of PulsarProxy automatically - #11421

Merged
codelipenghui merged 1 commit into
apache:masterfrom
315157973:auto-proxy-doc
Jul 22, 2021
Merged

codelipenghui merged 1 commit into
apache:masterfrom
315157973:auto-proxy-doc

Conversation

@315157973

Copy link
Copy Markdown
Contributor

Master Issue: #10041

Motivation

The config object has already been annotated.
We just need to add it to the auto-generated list

@315157973

Copy link
Copy Markdown
Contributor Author

Pulsar proxy

Name Description Default Dynamic Category
zookeeperServers The ZooKeeper quorum connection string (as a comma-separated list) null false Broker Discovery
configurationStoreServers Configuration store connection string (as a comma-separated list) null false Broker Discovery
globalZookeeperServers Global ZooKeeper quorum connection string (as a comma-separated list) null false Broker Discovery
zookeeperSessionTimeoutMs ZooKeeper session timeout (in milliseconds) 30000 false Broker Discovery
zooKeeperCacheExpirySeconds ZooKeeper cache expiry time in seconds 300 false Broker Discovery
brokerServiceURL The service url points to the broker cluster null false Broker Discovery
brokerServiceURLTLS The tls service url points to the broker cluster null false Broker Discovery
brokerWebServiceURL The web service url points to the broker cluster null false Broker Discovery
brokerWebServiceURLTLS The tls web service url points to the broker cluster null false Broker Discovery
functionWorkerWebServiceURL The web service url points to the function worker cluster. Only configure it when you setup function workers in a separate cluster null false Broker Discovery
functionWorkerWebServiceURLTLS The tls web service url points to the function worker cluster. Only configure it when you setup function workers in a separate cluster null false Broker Discovery
bindAddress Hostname or IP address the service binds on 0.0.0.0 false Server
advertisedAddress Hostname or IP address the service advertises to the outside world. If not set, the value of InetAddress.getLocalHost().getCanonicalHostName() is used. null false Server
haProxyProtocolEnabled Enable or disable the proxy protocol. false false Server
servicePort The port for serving binary protobuf request Optional[6650] false Server
servicePortTls The port for serving tls secured binary protobuf request Optional.empty false Server
webServicePort The port for serving http requests Optional[8080] false Server
webServicePortTls The port for serving https requests Optional.empty false Server
narExtractionDirectory The directory where nar Extraction happens /var/folders/hf/c52y1p712zndgyng8rbdz3rn3plps1/T/ false Server
proxyLogLevel Proxy log level, default is 0. 0: Do not log any tcp channel info 1: Parse and log any tcp channel info and command info without message body 2: Parse and log channel info, command info and message body Optional[0] false Server
statusFilePath Path for the file used to determine the rotation status for the proxy instance when responding to service discovery health checks null false Server
superUserRoles A list of role names (a comma-separated list of strings) that are treated as super-user, meaning they will be able to do all admin operations and publish & consume from all topics [] false Proxy Authorization
authenticationEnabled Whether authentication is enabled for the Pulsar proxy false false Proxy Authentication
authenticationProviders Authentication provider name list (a comma-separated list of class names [] false Proxy Authentication
authorizationEnabled Whether authorization is enforced by the Pulsar proxy false false Proxy Authorization
authorizationProvider Authorization provider as a fully qualified class name org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider false Proxy Authorization
forwardAuthorizationCredentials Whether client authorization credentials are forwarded to the broker for re-authorization.Authentication must be enabled via configuring authenticationEnabled to be true for thisto take effect false false Proxy Authorization
authenticateMetricsEndpoint Whether the '/metrics' endpoint requires authentication. Defaults to true.'authenticationEnabled' must also be set for this to take effect. true false Proxy Authentication
saslJaasClientAllowedIds This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL.
Default value is: ".pulsar.", so only clients whose id contains 'pulsar' are allowed to connect.
.pulsar. false SASL Authentication Provider
saslJaasServerSectionName Service Principal, for login context name. Default value is "PulsarProxy". PulsarProxy false SASL Authentication Provider
kinitCommand kerberos kinit command. /usr/bin/kinit false SASL Authentication Provider
maxConcurrentInboundConnections Max concurrent inbound connections. The proxy will reject requests beyond that 10000 false RateLimiting
maxConcurrentLookupRequests Max concurrent lookup requests. The proxy will reject requests beyond that 50000 false RateLimiting
brokerClientAuthenticationPlugin The authentication plugin used by the Pulsar proxy to authenticate with Pulsar brokers null false Broker Client Authorization
brokerClientAuthenticationParameters The authentication parameters used by the Pulsar proxy to authenticate with Pulsar brokers null false Broker Client Authorization
brokerClientTrustCertsFilePath The path to trusted certificates used by the Pulsar proxy to authenticate with Pulsar brokers null false Broker Client Authorization
tlsEnabledWithBroker Whether TLS is enabled when communicating with Pulsar brokers false false Broker Client Authorization
anonymousUserRole When this parameter is not empty, unauthenticated users perform as anonymousUserRole null false Proxy Authorization
tlsCertRefreshCheckDurationSec Tls cert refresh duration in seconds (set 0 to check on every new connection) 300 false TLS
tlsCertificateFilePath Path for the TLS certificate file null false TLS
tlsKeyFilePath Path for the TLS private key file null false TLS
tlsTrustCertsFilePath Path for the trusted TLS certificate file.

This cert is used to verify that any certs presented by connecting clients are signed by a certificate authority. If this verification fails, then the certs are untrusted and the connections are dropped
null false TLS
tlsAllowInsecureConnection Accept untrusted TLS certificate from client.

If true, a client with a cert which cannot be verified with the tlsTrustCertsFilePath cert will be allowed to connect to the server, though the cert will not be used for client authentication
false false TLS
tlsHostnameVerificationEnabled Whether the hostname is validated when the proxy creates a TLS connection with brokers false false TLS
tlsProtocols Specify the tls protocols the broker will use to negotiate during TLS handshake (a comma-separated list of protocol names).

Examples:- [TLSv1.3, TLSv1.2]
[] false TLS
tlsCiphers Specify the tls cipher the proxy will use to negotiate during TLS Handshake (a comma-separated list of ciphers).

Examples:- [TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256]
[] false TLS
tlsRequireTrustedClientCertOnConnect Whether client certificates are required for TLS.

Connections are rejected if the client certificate isn't trusted
false false TLS
tlsEnabledWithKeyStore Enable TLS with KeyStore type configuration for proxy false false KeyStoreTLS
tlsProvider TLS Provider null false KeyStoreTLS
tlsKeyStoreType TLS KeyStore type configuration for proxy: JKS, PKCS12 JKS false KeyStoreTLS
tlsKeyStore TLS KeyStore path for proxy null false KeyStoreTLS
tlsKeyStorePassword TLS KeyStore password for proxy null false KeyStoreTLS
tlsTrustStoreType TLS TrustStore type configuration for proxy: JKS, PKCS12 JKS false KeyStoreTLS
tlsTrustStore TLS TrustStore path for proxy null false KeyStoreTLS
tlsTrustStorePassword TLS TrustStore password for proxy null false KeyStoreTLS
brokerClientTlsEnabledWithKeyStore Whether the Pulsar proxy use KeyStore type to authenticate with Pulsar brokers false false KeyStoreTLS
brokerClientSslProvider The TLS Provider used by the Pulsar proxy to authenticate with Pulsar brokers null false KeyStoreTLS
brokerClientTlsTrustStoreType TLS TrustStore type configuration for proxy: JKS, PKCS12 used by the Pulsar proxy to authenticate with Pulsar brokers JKS false KeyStoreTLS
brokerClientTlsTrustStore TLS TrustStore path for proxy, used by the Pulsar proxy to authenticate with Pulsar brokers null false KeyStoreTLS
brokerClientTlsTrustStorePassword TLS TrustStore password for proxy, used by the Pulsar proxy to authenticate with Pulsar brokers null false KeyStoreTLS
brokerClientTlsCiphers Specify the tls cipher the proxy will use to negotiate during TLS Handshake (a comma-separated list of ciphers).

Examples:- [TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256].
used by the Pulsar proxy to authenticate with Pulsar brokers
[] false KeyStoreTLS
brokerClientTlsProtocols Specify the tls protocols the broker will use to negotiate during TLS handshake (a comma-separated list of protocol names).

Examples:- [TLSv1.3, TLSv1.2]
used by the Pulsar proxy to authenticate with Pulsar brokers
[] false KeyStoreTLS
httpReverseProxyConfigs Http directs to redirect to non-pulsar services [] false HTTP
httpOutputBufferSize Http output buffer size.

The amount of data that will be buffered for http requests before it is flushed to the channel. A larger buffer size may result in higher http throughput though it may take longer for the client to see data. If using HTTP streaming via the reverse proxy, this should be set to the minimum value, 1, so that clients see the data as soon as possible.
32768 false HTTP
httpInputMaxReplayBufferSize Http input buffer max size.

The maximum amount of data that will be buffered for incoming http requests so that the request body can be replayed when the backend broker issues a redirect response.
5242880 false HTTP
httpNumThreads Number of threads to use for HTTP requests processing 24 false HTTP
proxyAdditionalServletDirectory The directory to locate proxy additional servlet ./proxyAdditionalServlet false proxy plugin
additionalServletDirectory The directory to locate proxy additional servlet ./proxyAdditionalServlet false proxy plugin
proxyAdditionalServlets List of proxy additional servlet to load, which is a list of proxy additional servlet names [] false proxy plugin
additionalServlets List of proxy additional servlet to load, which is a list of proxy additional servlet names [] false proxy plugin
httpRequestsLimitEnabled Enable the enforcement of limits on the incoming HTTP requests false false HTTP
httpRequestsMaxPerSecond Max HTTP requests per seconds allowed. The excess of requests will be rejected with HTTP code 429 (Too many requests) 100.0 false HTTP
webSocketServiceEnabled Enable or disable the WebSocket servlet false false WebSocket
clusterName Name of the cluster to which this broker belongs to null false WebSocket

@315157973
315157973 requested a review from tuteng July 22, 2021 03:25
@Anonymitaet Anonymitaet added component/website doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. labels Jul 22, 2021
@Anonymitaet Anonymitaet added this to the 2.9.0 milestone Jul 22, 2021
@codelipenghui
codelipenghui merged commit 3e34ef1 into apache:master Jul 22, 2021
Technoboy- pushed a commit to Technoboy-/pulsar that referenced this pull request Jul 22, 2021
Master Issue: apache#10041

### Motivation
The config object has already been annotated.
We just need to add it to the auto-generated list
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
Master Issue: apache#10041

### Motivation
The config object has already been annotated.
We just need to add it to the auto-generated list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants