An API Key provides Read and Write access. If you want Read-only access please use an Entitlement Token. Both API Keys and Entitlement Tokens should be treated as secrets, to prevent unwarranted access.
There are two ways to retrieve your API Key:
- Via the Website UI
- Via the Cloudsmith CLI
Go to the API Key page in your user settings to view the API Key.
You can retrieve your API key using the cloudsmith login command:
cloudsmith login Login: [email protected] Password: PASSWORD Repeat for confirmation: PASSWORD
NOTE: Please ensure you use your email for the 'Login' prompt.
By default, you can use your API-Key from anywhere.
If you wish to restrict the use of your API-Key to a specific IP address or range, you can add the CIDR address/mask to the Allow List:
One you have added your CIDR address/mask, just click the green "Update" button to apply your restriction.
Updated about 1 year ago