You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/14 09:47:06 UTC

[GitHub] [pulsar] liudezhi2098 opened a new pull request, #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

liudezhi2098 opened a new pull request, #15172:
URL: https://github.com/apache/pulsar/pull/15172

   Master Issue: #15121
   
   Preview looks good:
   ![image](https://user-images.githubusercontent.com/33149602/163359659-6aad83b4-3b3e-4284-b24f-7f6c8a2d9add.png)
   
   
   ### Documentation
   
   Check the box below and label this PR (if you have committer privilege).
   
   Need to update docs? 
     
   - [x]  `doc`


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] Anonymitaet commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r851855960


##########
site2/docs/reference-configuration.md:
##########
@@ -243,6 +243,9 @@ brokerServiceCompactionThresholdInBytes|If the estimated backlog size is greater
 |tokenAuthClaim| Specify which of the token's claims will be used as the authentication "principal" or "role". The default "sub" claim will be used if this is left blank ||
 |tokenAudienceClaim| The token audience "claim" name, e.g. "aud", that will be used to get the audience from token. If not set, audience will not be verified. ||
 |tokenAudience| The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token, need contains this. ||
+|saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|
+|saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "PulsarBroker".|N/A|

Review Comment:
   ```suggestion
   |saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "PulsarBroker".|N/A|
   ```
   
   what's the meaning of "Service Principal, for login context name. "?



##########
site2/docs/reference-configuration.md:
##########
@@ -243,6 +243,9 @@ brokerServiceCompactionThresholdInBytes|If the estimated backlog size is greater
 |tokenAuthClaim| Specify which of the token's claims will be used as the authentication "principal" or "role". The default "sub" claim will be used if this is left blank ||
 |tokenAudienceClaim| The token audience "claim" name, e.g. "aud", that will be used to get the audience from token. If not set, audience will not be verified. ||
 |tokenAudience| The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token, need contains this. ||
+|saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|

Review Comment:
   ```suggestion
   |saslJaasClientAllowedIds|This is a regexp, which limits the range of possible IDs. These IDs can connect to the broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose ID contains 'pulsar' are allowed to connect.|N/A|
   ```



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] Anonymitaet merged pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
Anonymitaet merged PR #15172:
URL: https://github.com/apache/pulsar/pull/15172


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] liudezhi2098 commented on pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
liudezhi2098 commented on PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#issuecomment-1098950115

   @momo-jun PTAL


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] liudezhi2098 commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
liudezhi2098 commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r850934955


##########
site2/docs/reference-configuration.md:
##########
@@ -598,6 +598,7 @@ You can set the log level and configuration in the  [log4j2.yaml](https://github
 | tokenAudience | The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token need contains this parameter.| |
 |saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|
 |saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "Broker".|N/A|

Review Comment:
   PulsarBroker is correct



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] momo-jun commented on pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
momo-jun commented on PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#issuecomment-1124582050

   Hi @liudezhi2098 , I noticed that the master code PR was merged two days ago. Does this doc PR need any updates? 
   If it is good to go, ping @Anonymitaet for a check and merge. 


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] momo-jun commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
momo-jun commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r850453294


##########
site2/docs/reference-configuration.md:
##########
@@ -598,6 +598,7 @@ You can set the log level and configuration in the  [log4j2.yaml](https://github
 | tokenAudience | The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token need contains this parameter.| |
 |saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|
 |saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "Broker".|N/A|
+|saslJaasServerRoleTokenSignerSecret|Secret for SaslRoleTokenSigner. By default, it is set to `SaslConstants.JAAS_DEFAULT_ROLE_TOKEN_SIGNER_SECRET`, which is "PulsarSecret".|N/A|

Review Comment:
   BTW, this update is for the standalone section. Is it also required for the broker section?



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] liudezhi2098 commented on pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
liudezhi2098 commented on PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#issuecomment-1126648123

   > Hi @liudezhi2098 , I noticed that the master code PR was merged two days ago. Does this doc PR need any updates? If it is good to go, ping @Anonymitaet for a check and merge.
   
   need review again, thx.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] Anonymitaet commented on pull request #15172: [feat][doc] Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#issuecomment-1127146345

   @liudezhi2098 I've renamed your PR based on the [Pulsar PR Naming Guideline](https://docs.google.com/document/d/1d8Pw6ZbWk-_pCKdOmdvx9rnhPiyuxwq60_TrD68d7BA/edit#heading=h.wu6ygjne8e35). Please follow it, 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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] momo-jun commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
momo-jun commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r850450976


##########
site2/docs/reference-configuration.md:
##########
@@ -598,6 +598,7 @@ You can set the log level and configuration in the  [log4j2.yaml](https://github
 | tokenAudience | The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token need contains this parameter.| |
 |saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|
 |saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "Broker".|N/A|

Review Comment:
   This default value is different from the one shown in the `security-kerberos` file, which is "PulsarBroker". Which one is correct?



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] momo-jun commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
momo-jun commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r851013216


##########
site2/docs/reference-configuration.md:
##########
@@ -597,7 +600,8 @@ You can set the log level and configuration in the  [log4j2.yaml](https://github
 |tokenAudienceClaim| The token audience "claim" name, e.g. "aud". It is used to get the audience from token. If it is not set, the audience is not verified. ||
 | tokenAudience | The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token need contains this parameter.| |
 |saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|
-|saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "Broker".|N/A|
+|saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "PulsarBroker".||

Review Comment:
   Need to add "N/A" in the last column.



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] liudezhi2098 commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
liudezhi2098 commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r858259985


##########
site2/docs/reference-configuration.md:
##########
@@ -243,6 +243,9 @@ brokerServiceCompactionThresholdInBytes|If the estimated backlog size is greater
 |tokenAuthClaim| Specify which of the token's claims will be used as the authentication "principal" or "role". The default "sub" claim will be used if this is left blank ||
 |tokenAudienceClaim| The token audience "claim" name, e.g. "aud", that will be used to get the audience from token. If not set, audience will not be verified. ||
 |tokenAudience| The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token, need contains this. ||
+|saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|
+|saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "PulsarBroker".|N/A|

Review Comment:
   This is the concept of kerberos,principal can be understood as the user's identity, will bring this identity when you log in



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] github-actions[bot] commented on pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#issuecomment-1098949221

   @liudezhi2098:Thanks for your contribution. For this PR, do we need to update docs?
   (The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? 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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] momo-jun commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
momo-jun commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r850928275


##########
site2/docs/security-kerberos.md:
##########
@@ -114,7 +114,8 @@ You can have 2 separate JAAS configuration files:
  - Set `authenticationProviders` to choose `AuthenticationProviderSasl`;
  - Set `saslJaasClientAllowedIds` regex for principal that is allowed to connect to broker;
  - Set `saslJaasServerSectionName` that corresponds to the section in JAAS configuration file for broker;
- 
+ - Set `saslJaasServerRoleTokenSignerSecret` that corresponds to role token signer secret in JAAS configuration file for broker;

Review Comment:
   ```suggestion
    - Set `saslJaasServerRoleTokenSignerSecret` that corresponds to the secret of role token signer in JAAS configuration file for broker;
   ```



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] momo-jun commented on a diff in pull request #15172: [DOC]Add saslJaasServerRoleTokenSignerSecret parameter in security-kerberos.md

Posted by GitBox <gi...@apache.org>.
momo-jun commented on code in PR #15172:
URL: https://github.com/apache/pulsar/pull/15172#discussion_r850449751


##########
site2/docs/reference-configuration.md:
##########
@@ -598,6 +598,7 @@ You can set the log level and configuration in the  [log4j2.yaml](https://github
 | tokenAudience | The token audience stands for this broker. The field `tokenAudienceClaim` of a valid token need contains this parameter.| |
 |saslJaasClientAllowedIds|This is a regexp, which limits the range of possible ids which can connect to the Broker using SASL. By default, it is set to `SaslConstants.JAAS_CLIENT_ALLOWED_IDS_DEFAULT`, which is ".*pulsar.*", so only clients whose id contains 'pulsar' are allowed to connect.|N/A|
 |saslJaasServerSectionName|Service Principal, for login context name. By default, it is set to `SaslConstants.JAAS_DEFAULT_BROKER_SECTION_NAME`, which is "Broker".|N/A|
+|saslJaasServerRoleTokenSignerSecret|Secret for SaslRoleTokenSigner. By default, it is set to `SaslConstants.JAAS_DEFAULT_ROLE_TOKEN_SIGNER_SECRET`, which is "PulsarSecret".|N/A|

Review Comment:
   Should the default value be put in the last column?



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org