ToEnvVar converts a Path to a valid environment key. Returns an empty string in case of an error. scope.DefaultTypeID, etc/credentials/user_name => CONFIG__ETCD__CREDENTIALS__USER_NAME
(p config.Path)
Source from the content-addressed store, hash-verified