ssrfs-up 0.0.16 → 0.0.17

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: 5367181e6e92755aef164852fabcbdb15fc861a782eabe464e6b87fe507a521c
4
- data.tar.gz: 3b50d3da0c0d87af5501add4595fc2a1026180aa0d8d8e98c57a8b81b391b597
3
+ metadata.gz: ed38c43272a326e05f87796045f0c9e79debdda9d9ff065afbb61411f647fe9c
4
+ data.tar.gz: f5512226009f01dcf116ef1aa8a9a82d286459b52c28287fe4f886e740e16613
5
5
  SHA512:
6
- metadata.gz: a1a5e0527cf159efa16bab86dcabe40b12f947f9eca53c94317ad8b94c84eba4573ff61a6975c5ddc1447d2802942f3722dce62b492d3fc88c79fbcb01b68f3c
7
- data.tar.gz: 24dba499bd808bb4f6fd2931ae3707166bed87d6a4a26fc07a355ae9309e6b637fb6fd9a584fdaf73d8fa4024f28b3dd06fba559b2d0c6185fdffef37ca2fb46
6
+ metadata.gz: 0afab3d60b6690dda4cc7bd5dbc74e0da1906a848532b71bc37b7bdcd56e7e1d91bdaf1d7d76309831c18570e13460cff3197bcf146c9d83516338fc0f443753
7
+ data.tar.gz: 7c2ff1b829f59d23b7012f054377c2b04591133dda7d4603dd11334b6ff769c40175ac80988546277f3641ad1ce3c0bc71611a9eefc9bc78f15c05ce15916e94
data/lib/ssrfs-up.rb CHANGED
@@ -2,8 +2,6 @@ require 'aws-sdk-lambda'
2
2
  require 'uri'
3
3
  require 'ssrfs-up/version'
4
4
  require 'ostruct'
5
- ENV['HONEYCOMB_INTEGRATIONS'] = ''
6
- require 'honeycomb-beeline'
7
5
 
8
6
  # Common files
9
7
  require 'openapi_client/lib/openapi_client/api_client'
@@ -27,17 +25,11 @@ require 'openapi_client/lib/openapi_client/api/default_api'
27
25
  # make requests to it. All methods take a hostname or URI and a hash or options
28
26
  # for the request.
29
27
  module SSRFsUp
30
- Honeycomb.configure do |config|
31
- config.write_key = '0dc36d095b2c3aefb237dd04e13f580c'
32
- config.dataset = 'ssrfs-upv2'
33
- config.service_name = 'ssrfs-up-ruby-client'
34
- end
35
-
36
28
  class Configuration
37
29
  attr_accessor :func_name, :invoke_type, :log_type, :region, :test
38
30
 
39
31
  def initialize
40
- @func_name = 'arn:aws:lambda:us-west-2:871040364337:function:sec-czi-sec-ssrfs-up'
32
+ @func_name = 'arn:aws:lambda:us-west-2:871040364337:function:sec-czi-sec-ssrfs-up:sec-czi-sec-ssrfs-up'
41
33
  @invoke_type = 'RequestResponse'
42
34
  @log_type = 'None'
43
35
  @region = 'us-west-2'
@@ -142,25 +134,14 @@ module SSRFsUp
142
134
  # related errors so developers should assume the data they receive back is straight
143
135
  # from the server they are speaking to.
144
136
  def invoke(host = nil, opts = {})
145
- resp = if !configuration.test
146
- Honeycomb.start_span(name: 'invoke') do |span|
147
- opts = opts.merge(parseAsUri(host))
148
- opts = opts.merge({ 'headers' => { 'X-Honeycomb-Trace' => span.to_trace_header } })
149
- client.invoke({
150
- function_name: configuration.func_name,
151
- invocation_type: configuration.invoke_type,
152
- log_type: configuration.log_type,
153
- payload: payload(opts)
154
- })
155
- end
156
- else
157
- client.invoke({
158
- function_name: configuration.func_name,
159
- invocation_type: configuration.invoke_type,
160
- log_type: configuration.log_type,
161
- payload: payload(opts)
162
- })
163
- end
137
+ opts = opts.merge(parseAsUri(host))
138
+ resp = client.invoke({
139
+ function_name: configuration.func_name,
140
+ invocation_type: configuration.invoke_type,
141
+ log_type: configuration.log_type,
142
+ payload: payload(opts)
143
+ })
144
+
164
145
  if resp['status_code'] == 200
165
146
  OpenStruct.new(JSON.parse(resp&.payload&.string))
166
147
  else
@@ -1,3 +1,3 @@
1
1
  module SSRFsUp
2
- VERSION = '0.0.16'.freeze
2
+ VERSION = '0.0.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssrfs-up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Heath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-14 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-lambda
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '1'
33
- - !ruby/object:Gem::Dependency
34
- name: libhoney
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.18'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.18.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '1.18'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.18.0
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: typhoeus
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -70,26 +50,6 @@ dependencies:
70
50
  - - ">="
71
51
  - !ruby/object:Gem::Version
72
52
  version: 1.0.1
73
- - !ruby/object:Gem::Dependency
74
- name: honeycomb-beeline
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '2.4'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 2.4.0
83
- type: :runtime
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '2.4'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 2.4.0
93
53
  - !ruby/object:Gem::Dependency
94
54
  name: bundler
95
55
  requirement: !ruby/object:Gem::Requirement