Skip to content

Commit

Permalink
Added authorization and config warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Mar 16, 2021
1 parent 5d0592b commit 35dafbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions lib/smart_proxy_shellhooks/shellhooks_api.rb
Expand Up @@ -8,6 +8,9 @@ class Api < ::Sinatra::Base
include ::Proxy::Log
helpers ::Proxy::Helpers

authorize_with_ssl_client
authorize_with_trusted_hosts

get '/' do
executable = []
other = []
Expand Down
6 changes: 3 additions & 3 deletions settings.d/shellhooks.yml.example
@@ -1,6 +1,6 @@
---
# always enable HTTPS only
#:enabled: https
# Use https for production deployments. http and true only make sense in development
:enabled: false
# directory with executables

# Directory with executables.
:directory: /var/lib/foreman-proxy/shellhooks

0 comments on commit 35dafbf

Please sign in to comment.