logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mysql-secret-store-login-path - Secret store interface for MySQL login credentails

Description

mysql-secret-store-login-path  interacts  with  the  MySQL  secret  store  system  to  manage  user login
       credentials.  It can store, get, and erase secrets based on JSON data provided through standard input.

Examples

Storecredentailsforlocalrootuser:
       cat <<EOF | mysql-secret-store-login-path store
       {
              "ServerURL": "root@localhost:3306",
              "SecretType": "password",
              "Secret": "P@ssW0rd"
       }
       EOF

       Getcredentailsforlocalrootuser:
       cat <<EOF | mysql-secret-store-login-path get
       {
              "ServerURL": "root@localhost:3306",
              "SecretType": "password"
       }
       EOF

       Erasecredentailsforlocalrootuser:
       cat <<EOF | mysql-secret-store-login-path erase
       {
              "ServerURL": "root@localhost:3306",
              "SecretType": "password"
       }
       EOF

       Listallcredentails:
       mysql-secret-store-login-path list

MySQL 8.0                                          23/02/2024                   MYSQL-SECRET-STORE-LOGIN-PATH(1)

Name

       mysql-secret-store-login-path - Secret store interface for MySQL login credentails

Options

version
              Display the program version and exit.

       store  Store a new set of credentials in the secret store.  This option requires JSON input through stdin
              containing the following fields:

              {
                     "ServerURL": "user@host:port",
                     "SecretType": "<secret type>",
                     "Secret": "<secret>"
              }

       get    Get a set of credentials based on server URL and secret type.  The data is returned through stdout
              as a JSON object matching what was stored previously.  This option  requires  JSON  input  through
              stdin containing the following fields:

              {
                     "ServerURL": "user@host:port",
                     "SecretType": "<secret type>"
              }

       erase  Remove  a set of credentials based on server URL and secret type.  This option requires JSON input
              through stdin containing the following fields:

              {
                     "ServerURL": "user@host:port",
                     "SecretType": "<secret type>"
              }

       list   List all available credential URLs and secret types.  The data is returened as a JSON list through
              stdout.

Synopsis

mysql-secret-store-login-path <version|store|get|erase|list>

See Also