You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/07/20 08:26:00 UTC

[jira] [Work logged] (KNOX-2637) New Knox CLI command to generate a valid JWK secret

     [ https://issues.apache.org/jira/browse/KNOX-2637?focusedWorklogId=624798&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-624798 ]

ASF GitHub Bot logged work on KNOX-2637:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Jul/21 08:25
            Start Date: 20/Jul/21 08:25
    Worklog Time Spent: 10m 
      Work Description: smolnar82 opened a new pull request #471:
URL: https://github.com/apache/knox/pull/471


   ## What changes were proposed in this pull request?
   
   A new Knox CLI command is developed to generate a JWK and print it into the STDOUT.
   Accepted JWK algorithms are HS256, HS384, and HS512.
   
   ## How was this patch tested?
   
   Added new JUnit test cases and executed manual testing:
   ```
   $ bin/knoxcli.sh generate-jwk --jwkAlg HS256
   VhgTGC4iMO5zOObyh9BiAIDdtbgI-xICeXjZj_PTQlM
   
   $ bin/knoxcli.sh generate-jwk --jwkAlg HS384
   bDVioGVgpbjg9BtJ5_HUrXdjsgPfMY1WD_FqTR4jVmqu_Nu7kJoHNOQruovjRZUO
   
   $ bin/knoxcli.sh generate-jwk --jwkAlg HS512
   Gw8_mfmYMeQzlxdGdx8am9rL1BKxef8RcrpPicqI9v-cww84I7cFGrMyH1vmEy77JvScpsal41gOUY41zs8laQ
   
   $ bin/knoxcli.sh generate-jwk --jwkAlg 1212
   KnoxCLI {cmd} [options]
      [--help]
      [version]
      [create-master [--force] [--master mastersecret] [--generate]]
      [create-cert [--force] [--hostname h]]
      [export-cert [--type PEM|JKS|JCEKS|PKCS12]]
      [create-alias aliasname [--cluster clustername] [ (--value v) | (--generate) ]]
      [delete-alias aliasname [--cluster clustername]]
      [list-alias [--cluster clustername]]
      [redeploy [--cluster clustername]]
      [list-topologies]
      [validate-topology [--cluster clustername] | [--path "path/to/file"]]
      [user-auth-test [--cluster clustername] [--u username] [--p password] [--g]]
      [system-user-auth-test [--cluster clustername] [--d]]
      [service-test [--u username] [--p password] [--cluster clustername] [--hostname name] [--port port]]
      [list-registry-clients]
      [list-provider-configs --registry-client name]
      [upload-provider-config providerConfigFile --registry-client name [--entry-name entryName]]
      [list-descriptors --registry-client name]
      [upload-descriptor descriptorFile --registry-client name [--entry-name entryName]]
      [delete-provider-config providerConfig --registry-client name]
      [delete-descriptor descriptor --registry-client name]
      [get-registry-acl entry --registry-client name]
      [convert-topology --path "path/to/topology.xml" --provider-name my-provider.json [--descriptor-name my-descriptor.json] [--topology-name topologyName] [--output-path "path/to/configs/"] [--force] [--cluster clusterName] [--discovery-url url] [--discovery-user discoveryUser] [--discovery-pwd-alias discoveryPasswordAlias] [--discovery-type discoveryType]]
      [generate-jwk [--jwkAlg HS256|HS384|HS512]]
   
   generate-jwk [--jwkAlg HS256|HS384|HS512]:
   
   Generates a JSON Web Key using the supplied algorithm name and prints the generated key value on the screen.
   Options are as follows: 
   --jwkAlg (optional) defines the name of the desired JSON Web Signature algorithm name; defaults to HS256. Other accepted values are HS384 and HS512 
   
   ```


-- 
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: dev-unsubscribe@knox.apache.org

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


Issue Time Tracking
-------------------

            Worklog Id:     (was: 624798)
    Remaining Estimate: 0h
            Time Spent: 10m

> New Knox CLI command to generate a valid JWK secret
> ---------------------------------------------------
>
>                 Key: KNOX-2637
>                 URL: https://issues.apache.org/jira/browse/KNOX-2637
>             Project: Apache Knox
>          Issue Type: Task
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> It'd be great to have a Knox CLI command that generates a valid JWK secret and displays that on the screen.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)