Your licence
Applies to prodmask Pro 1.0.0-beta.1
Your licence comes by email, as an attached file named prodmask-licence-<id>.txt, and your account page offers the same file again. A licence lasts for a set time: from two weeks before it ends, the Pro commands say so, and when it ends they stop until you download the newest one from your account. The free commands, scan, leak-check, prune and version, never need one. The Pro commands, plan, copy and keys, look for it in this order, and use the first one that is set:
--licence, a licence file's path;- the environment variable
PRODMASK_LICENCE: a licence file's path, or its token, or the file's whole text; licence.txtin theprodmaskfolder of your config folder:- Linux:
~/.config/prodmask/licence.txt, or$XDG_CONFIG_HOME/prodmask/licence.txtwhenXDG_CONFIG_HOMEis set - macOS:
~/Library/Application Support/prodmask/licence.txt - Windows:
%AppData%\prodmask\licence.txt
- Linux:
The simplest way is a path. Either save the file as that licence.txt, or point at it:
export PRODMASK_LICENCE="$HOME/Downloads/prodmask-licence-<id>.txt"In PowerShell, use $env:PRODMASK_LICENCE = "$HOME\Downloads\prodmask-licence-<id>.txt". If you put the file's text in the variable instead, read it with Get-Content -Raw. Without -Raw, PowerShell joins the file's lines with spaces, and prodmask finds no licence line.
A licence that is set but not valid is an error: prodmask doesn't move on to the next place. Without a valid licence, a Pro command stops with exit status 4, and says why.
Treat the licence as a password. In CI, store it as a secret and pass it in PRODMASK_LICENCE. Don't put a token on the command line: it shows up in shell history and process lists. prodmask never prints it, and checks it offline: it sends nothing anywhere.