Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions spec/configuration/firewall_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
'2058/tcp', # (n2klocd)
'161/udp', # (snmp)
'162/udp', # (snmp)
'123/udp' # (chrony)
'123/udp', # (chrony)
'7777/tcp', # (rb-reputation)
'9191/tcp' # (airflow-webserver)
]
describe 'Check existence of not allowed open ports in public zone' do
open_ports = command('firewall-cmd --zone=public --list-ports')
Expand Down Expand Up @@ -91,10 +93,12 @@
'8500/tcp', # (consul web console)
'9092/tcp', # (kafka)
'11211/tcp', # (memcached)
'11211/udp', # (memcached)
'11434/tcp', # (redborder-agents)
'26379/tcp', # (redis)
'26380/tcp' # (redis-sentinel)
'11211/udp', # (memcached)
'11434/tcp', # (redborder-agents)
'26379/tcp', # (redis)
'26380/tcp', # (redis-sentinel)
'7777/tcp', # (rb-reputation)
'9191/tcp' # (airflow-webserver)
]

open_ports = command('firewall-cmd --zone=home --list-ports')
Expand Down
2 changes: 1 addition & 1 deletion spec/users/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
bash_users.map! { |p| p.split(':').first }
bash_users = Set.new bash_users

allowed_users = Set.new %w[root redborder postgres minio]
allowed_users = Set.new %w[root redborder postgres minio malware]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Justify why malware needs login permissions. No reason clear in task desciption.

not_allowed_users = bash_users - allowed_users

describe 'users with login permissions' do
Expand Down