open-nomad/helper
Charlie Voiselle d93ba0cf32
Add warnings to `var put` for non-alphanumeric keys. (#15933)
* Warn when Items key isn't directly accessible

Go template requires that map keys are alphanumeric for direct access
using the dotted reference syntax. This warns users when they create
keys that run afoul of this requirement.

- cli: use regex to detect invalid indentifiers in var keys
- test: fix slash in escape test case
- api: share warning formatting function between API and CLI
- ui: warn if var key has characters other than _, letter, or number

---------
Co-authored-by: Charlie Voiselle <464492+angrycub@users.noreply.github.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-02-13 16:14:59 -05:00
..
args
boltdd deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00
broker
bufconndialer
codec Provide mock secure variables implementation (#12980) 2022-07-11 13:34:03 -04:00
constraints/semver
crypto keyring: wrap root key in key encryption key (#14388) 2022-08-30 10:59:25 -04:00
discover
envoy
escapingfs cleanup: move fs helpers into escapingfs 2022-08-24 14:45:34 -05:00
escapingio build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
fields
flags
flatmap
gated-writer
grpc-middleware/logging
ipaddr
logging
mount
noxssrw
pluginutils cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
pointer pointer: add Merge helper function for merging pointers (#15499) 2022-12-08 11:09:22 -06:00
pool ci: swap freeport for portal in packages (#15661) 2023-01-03 11:25:20 -06:00
raftutil acl: add binding rule object state schema and functionality. (#15511) 2022-12-14 08:48:18 +01:00
snapshot snapshot restore-from-archive streaming and filtering (#13658) 2022-07-11 10:48:00 -04:00
stats
subproc client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
testlog tests: add a space between node name and timestamp (#13750) 2022-07-13 16:23:03 -04:00
testtask
tlsutil Pre forwarding authentication (#15417) 2022-12-06 14:44:03 -05:00
useragent vault: configure user agent on Nomad vault clients (#15745) 2023-01-10 10:39:45 -06:00
users users: create cache for user lookups (#16100) 2023-02-09 08:37:50 -06:00
uuid keyring: wrap root key in key encryption key (#14388) 2022-08-30 10:59:25 -04:00
winsvc
cluster.go helper: guard against negative inputs into random stagger 2022-09-08 09:17:48 -05:00
cluster_test.go deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00
eof.go
funcs.go acl: modify update endpoints behavior (#15580) 2022-12-20 11:22:19 +01:00
funcs_test.go client: avoid unconsumed channel in timer construction (#15215) 2022-11-11 09:31:34 -06:00
warning.go Add warnings to `var put` for non-alphanumeric keys. (#15933) 2023-02-13 16:14:59 -05:00
warning_test.go Add warnings to `var put` for non-alphanumeric keys. (#15933) 2023-02-13 16:14:59 -05:00