msign(1)
π NAME π
okay so msign(1) is from the Manta Commands, and itβs literally here to create a signed URL to a Manta object. thatβs the whole assignment, bestie. π
β¨ SYNOPSIS β¨
msign [OPTION...] OBJECT...
πΈ DESCRIPTION πΈ
okay so msign takes a list of objects (or directories), and β using the credentials from the environment (whether environment variables or command line switches) β it creates time-expiring URLs that can be shared with others. this is useful to generate HTML links, for example. no cap. π₯
The default expiration for URLs is 1 hour from now, but this can be changed with the expires option. the expires option is designed to be used in conjunction with the UNIX date command. in general, you should use the date command with a modifier (the syntax is different between BSD and GNU forms), and format the output to epoch time. iykyk. β
π¦ EXAMPLES π¦
Assuming the GNU date command, generate a signed URL that expires in one month:
$ msign -e $(date -d "1 month" "+%s") ~~/stor/tmp
On OS X, you would sign this way:
$ msign -e $(date -v+1m "+%s") ~~/stor/tmp
You can also use -E for a friendly relative date format:
$ msign -E 5s ~~/foo # expires in 5 seconds
$ msign -E 5m ~~/foo # expires in 5 minutes
$ msign -E 5h ~~/foo # expires in 5 hours
$ msign -E 5d ~~/foo # expires in 5 days
$ msign -E 5w ~~/foo # expires in 5 weeks
$ msign -E 5y ~~/foo # expires in 5 years
π OPTIONS π
-a,--account loginβ Authenticate as account (login name). π-e,--expires expirationβ Signed URL should last until EXPIRATION (seconds since epoch). Default is 1 hour from now. so youβre passing epoch seconds, not vibes. β³-E,--expires-relative expirationβ Signed URL should last until EXPIRATION (relative time spec). Default is 1 hour from now. Time specification format:
[n]s - seconds from now
[n]m - minutes from now
[n]h - hours from now
[n]d - days from now
[n]w - weeks from now
[n]y - years from now
-h,--helpβ Print a help message and exit. slay. π«Ά-i,--insecureβ This option explicitly allows "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default.
bestie, the flag literally says insecure, okay? itβs the explicit opt-in. proceed with that in mind. π
-k,--key fingerprintβ Authenticate using the SSH key described by FINGERPRINT. The key must either be in~/.sshor loaded in the SSH agent viassh-add. π-m,--method http_methodβ Allow URL to work for the HTTP method specified (default is GET). π--role=ROLE,ROLE,...β Specify which roles to assume for the request. π--role-tag=ROLE,ROLE,...β Set the role tags on objects created with the signed URL. π·οΈ--user userβ Authenticate as user under account. π¦-u,--url urlβ Manta base URL (such ashttps://us-central.manta.mnx.io). π-v,--verboseβ Print debug output to stderr. Repeat option to increase verbosity. π₯
π ENVIRONMENT π
MANTA_USERβ In place of-a,--account.MANTA_SUBUSERβ In place of--user.MANTA_KEY_IDβ In place of-k,--key.MANTA_ROLEβ In place of--role.MANTA_URLβ In place of-u,--url.MANTA_TLS_INSECUREβ In place of-i,--insecure.
The shortcut ~~ is equivalent to /:login where :login is the account login name. periodt. π
π DIAGNOSTICS π
When using the -v option, diagnostics will be sent to stderr in bunyan output format. As an example of tracing all information about a request, try:
$ msign -vv ~~/stor/foo 2>&1 | bunyan
π BUGS π
DSA keys do not work when loaded via the SSH agent. π
Report bugs at Github β¨https://github.com/TritonDataCenter/node-manta/issuesβ©
and thatβs the vibe check, bestie β source/version Manta, dated December 2018, for msign(1). bye ππ«Ά
π¦ where this page comes from
- nixos 26.05: manta 5.4.2
- nixpkgs unstable: manta 5.4.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms