The idea of a secrets plugin operations is that the secret of secrets 
file[2] is published in the container under the variable $testvar2 not 
with this task[1]?


[1]
{
  "id": "/test/test-secrets",
  "instances": 1,
  "cpus": 1,
  "mem": 32,
  "cmd": "while [ true ]; do echo $(date +'%m%d %H%M%S'): $HOSTNAME 
$testvar1 $testvar2 >> file ; env >> file ;  sleep 15 ; done",
  "acceptedResourceRoles": ["*"],
  "constraints": [["hostname", "CLUSTER", "m01.local"]],
  "backoffSeconds": 10,
  "networks": [ { "mode": "host" } ],
  "env": { "testvar1": "testval1", "testvar2": { "secret": 
"secretpassword"} },
  "secrets": { "secretpassword": { "source": "testagain" } },
  "container": {
    "type": "MESOS" 
  }
}


[2]
{
  "secrets": {
    "testagain": {
      "target": [ { "app": "/test/" } ],
      "value": 
"LS0tLS1CRUdJTiBQS0NTNy0tLS0tCk1JSUNpUVlKS29aSWh2Y05BUWNEb0lJQ2VqQ0NBbll
DQVFBeGdnSTZNSUlDTmdJQkFEQWVNQkV4RHpBTkJnTlYKQkFNTUJsQkxRMU1qTndJSkFKM3E
0eW1QYlYyVU1BMEdDU3FHU0liM0RRRUJBUVVBQklJQ0FIL1A1K0c0TFlhMwpkdnhndkdLVyt
6aGxFUTFqYzhDN1FXc1NBWTNqLzBxWEZOeHBmMUNlUGtoMnYwNlh4ZkhCR0hXYVZLOEZMMTN
rCnZxRmptclNSNzVQNXFVRHNwcWFuWTJucG1YNmpHaWxRQ1k2UkxKWHZIeWdld0k4UWFQazc
wM1pPN3BOUmM1QWMKVjNYc0lxVCtySXZiL1cxSzY5YWJEZlBPb1F2aTA2NkNGbDB2V2F2dkc
rdmFkSndJZXhpOGE3NEpZN0hVQWNmegpDMlJIcUs3RlUrYkl4SElxUE5POTFGR3MwUHlPcFJ
ZS1dsditEWEUvQ0NkSUZjdWhlaHRCT1UvbUtYN3JhYk4wCjNwdFFDTEhLN085cTlidkhlRHl
MSDJkTmY5amFsam5TcXZ4Q2ZIa2gyTUJzcVVUOWUyZHl5RS84ZTFCS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