marty 9.5.0 → 9.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d074baec508433805a51aea60daa67bae8d2a7153d89e36911a847175db5f92
4
- data.tar.gz: '09391b3a8a0b33cc3bdf6d6813d0c9ae1852acdff55cf137cba9c935a9bf1844'
3
+ metadata.gz: e457dd04b51af2cefe76859a59f80b9f7a62b6184825597dab79777147666330
4
+ data.tar.gz: d891d5effa9cea8092d34c595503dbef827afe86098d25bc109ff58824deb89a
5
5
  SHA512:
6
- metadata.gz: 5d1d1121878470f9d5e39df28294e653341ca1c8d6d5fb581b2401f040a73b5cb889c2392f2733cee0c4286457960f328b041fad9169f6a1513466235bf9693f
7
- data.tar.gz: d25f58da6dba36b7386b4cfdbfdbf78c9e8623be71d92c07f66a567ba80f624f08a528ba91887ead5f86b6f738e33776b350300027ced7ce5c427d6107f4f004
6
+ metadata.gz: fe9bd7f32d4fef940f91ee36c609054fc28d1cf55936c0fccdfad50f212ad8da8dbb771faefb31f94d84cecb633f24694cf2c7a52850180e03e264c7156713fe
7
+ data.tar.gz: 4ce7a00444928c18ddcdf56eeb6cb6c2a40fc5d0952e545fd3ddb7367fb64bcb838276cdc0bc5677a0daf49ac68b0ceed7a42447420c3d28699e9454afe40598
@@ -78,6 +78,19 @@ class Marty::MainAuthApp < Marty::AuthApp
78
78
  ]
79
79
  end
80
80
 
81
+ def misc_menu
82
+ [
83
+ {
84
+ text: 'Miscellaneous Views',
85
+ icon_cls: 'fa fa-window-restore glyph',
86
+ disabled: !self.class.has_perm?(:admin),
87
+ menu: [
88
+ :show_env,
89
+ ],
90
+ },
91
+ ]
92
+ end
93
+
81
94
  def system_menu
82
95
  {
83
96
  text: I18n.t('system'),
@@ -89,7 +102,12 @@ class Marty::MainAuthApp < Marty::AuthApp
89
102
  :config_view,
90
103
  :reload_scripts,
91
104
  :load_seed,
92
- ] + background_jobs_menu + notifications_menu + log_menu + api_menu
105
+ ] +
106
+ background_jobs_menu +
107
+ notifications_menu +
108
+ log_menu +
109
+ api_menu +
110
+ misc_menu
93
111
  }
94
112
  end
95
113
 
@@ -366,6 +384,13 @@ class Marty::MainAuthApp < Marty::AuthApp
366
384
  self.class.has_perm?(:dev))
367
385
  end
368
386
 
387
+ action :show_env do |a|
388
+ a.text = 'Show Env Variables'
389
+ a.tooltip = 'Run `env` on host'
390
+ a.icon_cls = 'fa fa-terminal glphy'
391
+ a.disabled = !self.class.has_perm?(:admin)
392
+ end
393
+
369
394
  ######################################################################
370
395
 
371
396
  def bg_command(subcmd)
@@ -408,6 +433,22 @@ class Marty::MainAuthApp < Marty::AuthApp
408
433
  end
409
434
  end
410
435
 
436
+ endpoint :show_env do |_|
437
+ html = `env`.
438
+ split(/\n/).
439
+ sort.
440
+ map do |e|
441
+ # mask passwords and expose first 4 digits of SECRET_KEY
442
+ e.
443
+ gsub(/PASSWORD=.*/, 'PASSWORD=********').
444
+ gsub(/SECRET_KEY_BASE=(.{4}).*/, 'SECRET_KEY_BASE=\1****')
445
+ end.
446
+ join('<br/>').
447
+ html_safe
448
+
449
+ client.show_detail html, 'Server Environment'
450
+ end
451
+
411
452
  ######################################################################
412
453
  # Postings
413
454
 
@@ -120,5 +120,9 @@
120
120
  btn == "ok" && me.server.logCleanup(value);
121
121
  }
122
122
  });
123
+ },
124
+
125
+ netzkeOnShowEnv() {
126
+ this.server.showEnv({});
123
127
  }
124
128
  });
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Marty
4
- VERSION = '9.5.0'
4
+ VERSION = '9.5.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marty
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.5.0
4
+ version: 9.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2020-02-13 00:00:00.000000000 Z
17
+ date: 2020-02-18 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: actioncable