Please read the following carefully if you want to be a developer on Leviathan:
- Upload SSH public key
- Generate Token
As developers of the Leviathan open source community, one need to upload SSH public key to the platform for user identity authentication. The following are the steps to generate the SSH public key and upload it to the platform.
-
Check if a local public key file exists:
Mac/Linux:
cd ~/.ssh ls -la # If there is a .pub file (such as id_rsa.pub), there is no need to generate the SSH public key again. cat ~/.ssh/id_rsa.pub
Windows:
cd ~\.ssh # username is the current Windows user name, please refer to Leviathan Documentation. dir # If there is a .pub file (such as id_rsa.pub), you do not need to make the SSH public key again. type ~\.ssh\id_rsa.pub
-
Generating SSH key pair if not exists:
Mac/Linux:
$ ssh-keygen -t ecdsa -C "[email protected]" # It is not recommended to use the rsa encryption algorithm to generate a key pair, ecdsa is more secure and is supported by the new version of OpenSSL.
Windows:
$ ssh-keygen.exe # enter until the end
-
Log in to Leviathan, in
Account Setting
-Public Key
, clickCreate SSH public key
, copy and paste the content ofid_ed25519.pub
file generated in the above steps.
If developers want to publish toolkit package to the platform, one need to apply for an API Token.
- Log in to the Leviathan platform, in
Account Settings
-Developer Setting
, clickGenerate token
, Enter the name, select the expiration, and specify the namespace. The namespace can be empty (meaning that all namespaces are authorized)。Please safekeeping your token, it cannot be retrieved if lost !!!
- You need to set the environment variable
LEVHUB_KEY
to the token applied in the first step when uploading the package.# Example export LEVHUB_KEY=BzkVKv749U6UwjjRWsjBrVm4Y3ap6tpT4aT0WKfgcqTRG2PjT74djhaQV9AMDvjqQro25GgJ # Upload pdm lev upload