JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
The codesonar generate_hubpwfile.py command allows you to interactively generate a hub password file. Once generated, this file can be supplied with the -hubpwfile option to any codesonar subcommands that require hub authentication.
The expected use case for this command is in deploying CodeSonar in a containerized context. You can run codesonar generate_hubpwfile.py in a temporary container to obtain a password and store it to a persistent location.
The codesonar generate_hubpwfile.py command interactively prompts the user for a password, then stores this password in a specified file with owner-only permissions.
generate_hubpwfile.py is a codesonar Python subcommand.
The general form of the command line is as follows.
| path/to/out_pwfile |
Write the provided password to the file at this location.
|
|---|---|
| [--prompt "promptstring"] | Use the specified promptstring to interactively prompt
the user for a password to store. If not specified, the prompt will be "Password: ". |
| [--make-dirs] |
The command will create any directories in the specified path
that do not already exist. If not specified, behavior depends on whether or not --overwrite is specified.
|
| [--overwrite] |
Any existing file at path/to/out_pwfile
will be overwritten. If not specified, the command will fail if file path/to/out_pwfile already exists. When --overwrite is specified, the command will behave as if --make-dirs is also specified. |
The expected use case for this command is in deploying CodeSonar in a containerized context.
Suppose that:
Then the general technique is as follows.
The remaining steps will refer to this location as /persistent/pathto/pwfname.
Note: you will probably find it most convenient to store the /persistent/pathto/pwfname string in a variable and then refer to this variable in your various commands.
To report problems with this documentation, please visit https://support.codesecure.com/.