Merge pull request #1698 from hashicorp/issue-1263

Return warning about ACLing the LDAP configuration endpoint.
This commit is contained in:
Jeff Mitchell 2016-08-08 10:19:30 -04:00 committed by GitHub
commit 2c02f78144
1 changed files with 4 additions and 2 deletions

View File

@ -158,9 +158,11 @@ func (b *backend) pathConfigRead(
return nil, nil
}
return &logical.Response{
resp := &logical.Response{
Data: structs.New(cfg).Map(),
}, nil
}
resp.AddWarning("Read access to this endpoint should be controlled via ACLs as it will return the configuration information as-is, including any passwords.")
return resp, nil
}
/*