使用docker-compose的Security Monkey安装失败

时间:2019-02-09 12:14:59

标签: amazon-web-services security

通过docker安装安全猴子成功,但是我无法登录Web ui。我已经尝试了docker安装说明中介绍的两种方法。 尝试方法2(即在Docker容器外壳中手动执行命令)时,会发生以下错误:

bash: ^: command not found root@7a1ed8f90a0c:/usr/local/src/security_monkey# [SQL: 'SELECT
account_type.id AS account_type_id, account_type.name AS account_type_name \nFROM account_type \nWHERE
account_type.name = %(name_1)s \n LIMIT %(param_1)s'] [parameters: {'name_1': 'AWS', 'param_1': 1}]
`(Background on this error at: http://sqlalche.me/e/f405) bash: syntax error near unexpected token `('

这似乎与postgress数据库命令有关,但不确定。 我尝试过的命令是monkey add_account_aws --id $account --name $name -r SecurityMonkey

当我尝试命令monkey create_user admin@example.com Admin时,发生另一个错误:

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 507, in do_execute
cursor.execute(statement, parameters) sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) relation "user" does not exist LINE 3: FROM "user" ^ [SQL: 'SELECT count(*) AS count_1 \nFROM (SELECT
"user".id AS user_id, "user".email AS user_email, "user".password AS user_password, "user".active AS user_active, "user".confirmed_at AS user_confirmed_at, "user".daily_audit_email AS
user_daily_audit_email, "user".change_reports AS user_change_reports, "user".last_login_at AS user_last_login_at, "user".current_login_at AS user_current_login_at, "user".login_count AS
user_login_count, "user".last_login_ip AS user_last_login_ip, "user".current_login_ip AS user_current_login_ip, "user".role AS user_role 
\nFROM "user" \nWHERE "user".email = %(email_1)s) AS anon_1'] [parameters: {'email_1': u'admin@example.com'}] (Background on this error at: http://sqlalche.me/e/f405)

更新

我设法克服了最初的障碍。成功登录后,我以匿名用户身份重定向到仪表板,并且始终显示错误Error loading resource from API. Error:<API Server is not reachable>。但是secmonkey-api容器似乎运行良好。我不确定下一步该怎么做,将不胜感激!

0 个答案:

没有答案