Skip to content

Cumulocity CLI 2.51.0

Choose a tag to compare

@github-actions github-actions released this 17 Apr 14:59
· 164 commits to v2 since this release
b8eff6a

What's Changed

New features

Encrypt sensitive session information by default #495

Sensitive session information such as passwords and tokens, are stored encrypted (using salt/hash). Session encryption has been around for a while in go-c8y-cli, but is now turned on by default to encourage better security practices for users. Users will be prompted to set the password file and a salt will be generated and stored on disk which is used to encrypt/decrypt the passwords/tokens. If you lose either the salt file or the password, then the information will be lost.

If you don't wish to have session encryption, then you can also disable it per session, or disable it globally in your shell profile using:

export  C8Y_SETTINGS_ENCRYPTION_ENABLED='false'

Cumulocity URL shown on confirmation prompt #486

The confirmation prompt now shows the Cumulocity URL related to the go-c8y-cli session that you're using so it is easier to tell which context you are in. Now both the URL and the tenant id are shown to

Example

$ c8y devices create --name rmi_hello1 --confirm
? Confirm (job: 1)
Create device on host example.c8y.io (tenant t12345)
[y] Yes  [a] Yes to All  [n] No  [l] No to All (y) 

Minor improvements

  • feat: create session files that are only readable by the current user by @reubenmiller in #494

  • feat: add URL encode/decode template functions by @reubenmiller in #488

  • docs: add examples for downloading inventory binaries using template variables by @reubenmiller in #489

Full Changelog: v2.50.1...v2.51.0