smart_proxy_remote_execution_ssh 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c11ba1ba0190a527137e59e3a4beea4d273a312512e1bdda9f970aa28a14a35
|
|
4
|
+
data.tar.gz: '0083c234c6e3fa492900de27cc34c3e65b47174ad72af6bc4a6d16979c5843ab'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a14026e7daaa782a3adcd5c5ea91db4ffc2223b81a63ade152e5b9e0d46c8020f4f8e88d2ce2827bfc60053b8d7059995370254120c25e0a1f30114c60aa1db0
|
|
7
|
+
data.tar.gz: e454cb0622f818cd60e159a72bcd2475aef9bb349b17bb2df20363d0779032891bf3b5c391de44ee8fd45fbc2772357bee923c26b93720fc2838488fe74adc6d
|
|
@@ -22,7 +22,8 @@ module Proxy::RemoteExecution::Ssh::Runners
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def filter_password?(received_data)
|
|
25
|
-
!@effective_user_password.empty? && @password_sent &&
|
|
25
|
+
!@effective_user_password.empty? && @password_sent &&
|
|
26
|
+
received_data.b.match(Regexp.new(Regexp.escape(@effective_user_password).b))
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
def sent_all_data?
|
|
@@ -420,8 +421,13 @@ module Proxy::RemoteExecution::Ssh::Runners
|
|
|
420
421
|
end
|
|
421
422
|
|
|
422
423
|
def ensure_effective_user_access(*paths, mode: 'rx')
|
|
423
|
-
|
|
424
|
-
|
|
424
|
+
return if @user_method.is_a?(NoopUserMethod) || @user_method.effective_user == 'root'
|
|
425
|
+
|
|
426
|
+
paths_str = paths.join(' ')
|
|
427
|
+
if @user_method.ssh_user == 'root'
|
|
428
|
+
ensure_remote_command("chown #{@user_method.effective_user} #{paths_str} && chmod u=#{mode} #{paths_str}")
|
|
429
|
+
else
|
|
430
|
+
ensure_remote_command("setfacl -m u:#{@user_method.effective_user}:#{mode} #{paths_str}")
|
|
425
431
|
end
|
|
426
432
|
end
|
|
427
433
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_proxy_remote_execution_ssh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nečas
|
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
233
233
|
- !ruby/object:Gem::Version
|
|
234
234
|
version: '0'
|
|
235
235
|
requirements: []
|
|
236
|
-
rubygems_version: 4.0.
|
|
236
|
+
rubygems_version: 4.0.10
|
|
237
237
|
specification_version: 4
|
|
238
238
|
summary: Ssh remote execution provider for Foreman Smart-Proxy
|
|
239
239
|
test_files: []
|