aptible-api 1.2.22 → 1.3.0

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: 2bf9fec8e55adbb3ed0c9bd71cb98dfa74f562e94b0135090aabfd99a90da6cf
4
- data.tar.gz: ea84a6e34dd59c7d36bebac7e6d69c12aa8ac0cf8768e8deaae0902a5ba37486
3
+ metadata.gz: 63f51f06f268072606997a8cc88c33352bc1e535b86a98db7f624d1e83f2c0fa
4
+ data.tar.gz: 803be5a42c71a8e58b388a37c6b71da844d3285a8586c4b6f5b91c78dcac1cde
5
5
  SHA512:
6
- metadata.gz: 27763090884f1789c6543bb4fdbc785e00919dc9bce3947d766e7e70c17bb6870b7364b21ac8bb9dd96f15c9d6a3fc898f448d6cd902ddf62a6c86f870185374
7
- data.tar.gz: 11743d432e3da0cc663c2f161cbe7e38810a9df09c8d6e000d20f10ca167d785ccab883a4dab7cfd47af74155395a62a299e9757ef7041e5d5747b7950f5982d
6
+ metadata.gz: a239e639e4363a56edbbf67b0caa007466e36ebc1af19ae159b26c02f99de8f0d325285a14d530e163b62bef4a3959d59c0b951addf161264c76210ea7eea0b5
7
+ data.tar.gz: a80e09c5b6aa86c08e6c5d0640334915dc5ad44a92d02f2e2101ccac75ba0ed28eced818aa18fdc115cc2a28a8f5ab8a75e8b371c30a2c6021aca46bdd3fab40
data/SECURITY.md ADDED
@@ -0,0 +1,23 @@
1
+ # Aptible Open Source Security Policies and Procedures
2
+
3
+ This document outlines security procedures and general policies for the Aptible open source projects as found on https://github.com/aptible.
4
+
5
+ * [Reporting a Vulnerability](#reporting-a-vulnerability)
6
+ * [Responsible Disclosure Policy](#responsible-disclosure-policy)
7
+
8
+ ## Reporting a Vulnerability
9
+
10
+ The Aptible team and community take all security vulnerabilities
11
+ seriously. Thank you for improving the security of our open source software. We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.
12
+
13
+ Report security vulnerabilities by emailing the Aptible security team at:
14
+
15
+ security@aptible.com
16
+
17
+ Security researchers can also privately report security vulnerabilities to repository maintainers using the GitHub "Report a Vulnerability" feature. [See how-to here](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability).
18
+
19
+ The Aptible team will acknowledge your email within 24 business hours and send a detailed response within 48 business hours indicating the next steps in handling your report. The Aptible security team will keep you informed of the progress and may ask for additional information or guidance.
20
+
21
+ ## Responsible Disclosure Policy
22
+
23
+ Please see Aptible's Responsible Disclosure Policy here: https://www.aptible.com/legal/responsible-disclosure/
@@ -25,6 +25,7 @@ module Aptible
25
25
  field :activated, type: Aptible::Resource::Boolean
26
26
  field :syslog_host
27
27
  field :syslog_port
28
+ field :organization_id
28
29
  field :created_at, type: Time
29
30
  field :updated_at, type: Time
30
31
  field :gentlemanjerry_endpoint
@@ -3,6 +3,7 @@ module Aptible
3
3
  class App < Resource
4
4
  belongs_to :account
5
5
  belongs_to :current_configuration
6
+ has_one :last_code_scan_result
6
7
  embeds_one :current_image
7
8
  embeds_one :last_operation
8
9
  embeds_one :last_deploy_operation
@@ -12,6 +13,9 @@ module Aptible
12
13
  has_many :vhosts
13
14
  has_many :ephemeral_sessions
14
15
  has_many :aws_instances
16
+ has_many :prerelease_commands
17
+ has_many :service_definitions
18
+ has_many :code_scan_results
15
19
  embeds_many :services
16
20
 
17
21
  field :id
@@ -0,0 +1,19 @@
1
+ module Aptible
2
+ module Api
3
+ class CodeScanResult < Resource
4
+ belongs_to :app
5
+ belongs_to :operation
6
+
7
+ field :id
8
+ field :dockerfile_present
9
+ field :procfile_present
10
+ field :aptible_yml_present
11
+ field :git_ref
12
+ field :git_commit
13
+
14
+ field :created_at, type: Time
15
+ field :updated_at, type: Time
16
+ field :deleted_at, type: Time
17
+ end
18
+ end
19
+ end
@@ -10,6 +10,8 @@ module Aptible
10
10
  has_many :ssh_portal_connections
11
11
  has_many :ephemeral_sessions
12
12
 
13
+ has_one :code_scan_result
14
+
13
15
  field :id
14
16
  field :type
15
17
  field :status
@@ -41,6 +43,10 @@ module Aptible
41
43
  nil
42
44
  end
43
45
 
46
+ def logs_url
47
+ links['logs'].href
48
+ end
49
+
44
50
  def succeeded?
45
51
  status == 'succeeded'
46
52
  end
@@ -0,0 +1,14 @@
1
+ module Aptible
2
+ module Api
3
+ class PrereleaseCommand < Resource
4
+ belongs_to :app
5
+
6
+ field :id
7
+
8
+ field :command
9
+ field :index
10
+ field :created_at, type: Time
11
+ field :updated_at, type: Time
12
+ end
13
+ end
14
+ end
@@ -43,3 +43,6 @@ require 'aptible/api/ephemeral_session'
43
43
  require 'aptible/api/ephemeral_container'
44
44
  require 'aptible/api/metric_drain'
45
45
  require 'aptible/api/backup_retention_policy'
46
+ require 'aptible/api/prerelease_command'
47
+ require 'aptible/api/service_definition'
48
+ require 'aptible/api/code_scan_result'
@@ -0,0 +1,14 @@
1
+ module Aptible
2
+ module Api
3
+ class ServiceDefinition < Resource
4
+ belongs_to :app
5
+
6
+ field :id
7
+
8
+ field :command
9
+ field :process_type
10
+ field :created_at, type: Time
11
+ field :updated_at, type: Time
12
+ end
13
+ end
14
+ end
@@ -16,6 +16,7 @@ module Aptible
16
16
  field :ssh_host_ecdsa_public_key
17
17
  field :ssh_portal_host
18
18
  field :ssh_portal_port
19
+ field :organization_id
19
20
  field :created_at, type: Time
20
21
  field :updated_at, type: Time
21
22
 
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.2.22'.freeze
3
+ VERSION = '1.3.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.22
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2023-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-auth
@@ -194,6 +194,7 @@ files:
194
194
  - Procfile
195
195
  - README.md
196
196
  - Rakefile
197
+ - SECURITY.md
197
198
  - aptible-api.gemspec
198
199
  - lib/aptible/api.rb
199
200
  - lib/aptible/api/account.rb
@@ -205,6 +206,7 @@ files:
205
206
  - lib/aptible/api/backup.rb
206
207
  - lib/aptible/api/backup_retention_policy.rb
207
208
  - lib/aptible/api/certificate.rb
209
+ - lib/aptible/api/code_scan_result.rb
208
210
  - lib/aptible/api/configuration.rb
209
211
  - lib/aptible/api/container.rb
210
212
  - lib/aptible/api/database.rb
@@ -220,9 +222,11 @@ files:
220
222
  - lib/aptible/api/metric_drain.rb
221
223
  - lib/aptible/api/operation.rb
222
224
  - lib/aptible/api/permission.rb
225
+ - lib/aptible/api/prerelease_command.rb
223
226
  - lib/aptible/api/release.rb
224
227
  - lib/aptible/api/resource.rb
225
228
  - lib/aptible/api/service.rb
229
+ - lib/aptible/api/service_definition.rb
226
230
  - lib/aptible/api/ssh_portal_connection.rb
227
231
  - lib/aptible/api/stack.rb
228
232
  - lib/aptible/api/stack_layer.rb