Revert "Also allow docker in containers spawned by an authorized app"

This reverts commit 4f336a05fc.

This is not required by an app yet. Besides, it breaks tests
This commit is contained in:
Girish Ramakrishnan
2018-08-20 20:10:16 -07:00
parent 89cf8167e6
commit f338e015d5
3 changed files with 2 additions and 22 deletions

View File

@@ -428,10 +428,10 @@ function getByIpAddress(ip, callback) {
assert.strictEqual(typeof ip, 'string');
assert.strictEqual(typeof callback, 'function');
docker.getAppIdByContainerIp(ip, function (error, appId) {
docker.getContainerIdByIp(ip, function (error, containerId) {
if (error) return callback(new AppsError(AppsError.INTERNAL_ERROR, error));
appdb.get(appId, function (error, app) {
appdb.getByContainerId(containerId, function (error, app) {
if (error && error.reason === DatabaseError.NOT_FOUND) return callback(new AppsError(AppsError.NOT_FOUND, 'No such app'));
if (error) return callback(new AppsError(AppsError.INTERNAL_ERROR, error));