ソースを参照

Merge branch 'master' into kris/add_support_for_restore_ui

# Conflicts:
#	bubble-web
pull/20/head
コミット
80ce4cc10e
36個のファイルの変更115行の追加28行の削除
  1. +3
    -1
      bin/aws/aws_delete_image.sh
  2. +3
    -1
      bin/aws/aws_delete_images.sh
  3. +3
    -1
      bin/do/do_delete_image.sh
  4. +3
    -1
      bin/do/do_delete_instance.sh
  5. +3
    -1
      bin/do/do_list_images.sh
  6. +3
    -1
      bin/do/do_list_instances.sh
  7. +3
    -1
      bin/do/docurl
  8. +3
    -1
      bin/godaddy/gd_list_records.sh
  9. +3
    -0
      bin/godaddy/gd_update_records.sh
  10. +3
    -1
      bin/godaddy/gdcurl
  11. +3
    -0
      bin/rdelkeys
  12. +3
    -0
      bin/rkeys
  13. +3
    -1
      bin/vultr/vcurl
  14. +3
    -1
      bin/vultr/vultr_delete_instance.sh
  15. +3
    -1
      bin/vultr/vultr_delete_snapshot.sh
  16. +3
    -1
      bin/vultr/vultr_delete_snapshots.sh
  17. +3
    -1
      bin/vultr/vultr_list_instances.sh
  18. +3
    -1
      bin/vultr/vultr_list_snapshots.sh
  19. +4
    -0
      bubble-server/src/main/java/bubble/model/device/DeviceSecurityLevel.java
  20. +4
    -0
      bubble-server/src/main/java/bubble/server/AppLinks.java
  21. +4
    -0
      bubble-server/src/main/java/bubble/server/BasicAppLinks.java
  22. +1
    -0
      bubble-server/src/main/java/bubble/server/BubbleConfiguration.java
  23. +4
    -0
      bubble-server/src/main/java/bubble/service/cloud/DeviceIdService.java
  24. +4
    -0
      bubble-server/src/main/java/bubble/service/stream/AppPrimerService.java
  25. +4
    -0
      bubble-server/src/main/java/bubble/service/stream/ConnectionCheckResponse.java
  26. +4
    -0
      bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java
  27. +4
    -0
      bubble-server/src/main/java/bubble/service_dbfilter/DbFilterAppPrimerService.java
  28. +4
    -0
      bubble-server/src/main/java/bubble/service_dbfilter/DbFilterDeviceIdService.java
  29. +3
    -1
      bubble-server/src/main/resources/ansible/roles/bubble/files/bubble_role.json
  30. +2
    -0
      bubble-server/src/main/resources/ansible/roles/bubble/templates/bubble.env.j2
  31. +2
    -1
      bubble-server/src/main/resources/ansible/roles/mitmproxy/files/bubble_role.json
  32. +1
    -0
      bubble-server/src/main/resources/ansible/roles/mitmproxy/templates/bubble_config.py.j2
  33. +2
    -0
      bubble-server/src/main/resources/bubble-config.yml
  34. +8
    -9
      bubble-server/src/main/resources/message_templates/en_US/server/post_auth/ResourceMessages.properties
  35. +5
    -1
      bubble-server/src/main/resources/packer/roles/mitmproxy/files/bubble_conn_check.py
  36. +1
    -1
      bubble-web

+ 3
- 1
bin/aws/aws_delete_image.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
function die {
echo 1>&2 "${1}"
exit 1


+ 3
- 1
bin/aws/aws_delete_images.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
function die {
echo 1>&2 "${1}"
exit 1


+ 3
- 1
bin/do/do_delete_image.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
IMAGEID=${1:?no IMAGEID provided}
THISDIR=$(cd $(dirname ${0}) && pwd)
DOCURL=${THISDIR}/docurl


+ 3
- 1
bin/do/do_delete_instance.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
DROPLETID=${1:?no DROPLETID provided}
THISDIR=$(cd $(dirname ${0}) && pwd)
DOCURL=${THISDIR}/docurl


+ 3
- 1
bin/do/do_list_images.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
THISDIR=$(cd $(dirname ${0}) && pwd)
DOCURL=${THISDIR}/docurl



+ 3
- 1
bin/do/do_list_instances.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
THISDIR=$(cd $(dirname ${0}) && pwd)
DOCURL=${THISDIR}/docurl



+ 3
- 1
bin/do/docurl ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
if [[ -z "${DIGITALOCEAN_API_KEY}" ]] ; then
echo "DIGITALOCEAN_API_KEY not defined in environment"
exit 1


+ 3
- 1
bin/godaddy/gd_list_records.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
DOMAIN=${1:?no domain provided}

THISDIR=$(cd $(dirname ${0}) && pwd)


+ 3
- 0
bin/godaddy/gd_update_records.sh ファイルの表示

@@ -1,4 +1,7 @@
#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
DOMAIN=${1:?no domain provided}
RECORDS_JSON="${2:?no JSON DNS records file provided}"



+ 3
- 1
bin/godaddy/gdcurl ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
if [[ -z "${GODADDY_API_KEY}" ]] ; then
echo "GODADDY_API_KEY not defined in environment"
exit 1


+ 3
- 0
bin/rdelkeys ファイルの表示

@@ -1,4 +1,7 @@
#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
KEY_MATCH="${1:?no key match}"
for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli ) ; do
echo "del ${k} => $(echo "del ${k}" | redis-cli)"


+ 3
- 0
bin/rkeys ファイルの表示

@@ -1,4 +1,7 @@
#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
KEY_MATCH="${1}"
for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli ) ; do
echo "$k => $(echo "get $k" | redis-cli)"


+ 3
- 1
bin/vultr/vcurl ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
if [[ -z "${VULTR_API_KEY}" ]] ; then
>&2 echo "VULTR_API_KEY not defined in environment"
exit 1


+ 3
- 1
bin/vultr/vultr_delete_instance.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
SUBID=${1:?no SUBID provided}
THISDIR=$(cd $(dirname ${0}) && pwd)
VCURL=${THISDIR}/vcurl


+ 3
- 1
bin/vultr/vultr_delete_snapshot.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
SNAPSHOTID=${1:?no snapshot provided}
THISDIR=$(cd $(dirname ${0}) && pwd)
VCURL=${THISDIR}/vcurl


+ 3
- 1
bin/vultr/vultr_delete_snapshots.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
THISDIR=$(cd $(dirname ${0}) && pwd)
VCURL=${THISDIR}/vcurl



+ 3
- 1
bin/vultr/vultr_list_instances.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
THISDIR=$(cd $(dirname ${0}) && pwd)
VCURL=${THISDIR}/vcurl



+ 3
- 1
bin/vultr/vultr_list_snapshots.sh ファイルの表示

@@ -1,5 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
THISDIR=$(cd $(dirname ${0}) && pwd)
VCURL=${THISDIR}/vcurl



+ 4
- 0
bubble-server/src/main/java/bubble/model/device/DeviceSecurityLevel.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.model.device;

import com.fasterxml.jackson.annotation.JsonCreator;


+ 4
- 0
bubble-server/src/main/java/bubble/server/AppLinks.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.server;

import com.fasterxml.jackson.annotation.JsonIgnore;


+ 4
- 0
bubble-server/src/main/java/bubble/server/BasicAppLinks.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.server;

import lombok.Getter;


+ 1
- 0
bubble-server/src/main/java/bubble/server/BubbleConfiguration.java ファイルの表示

@@ -218,6 +218,7 @@ public class BubbleConfiguration extends PgRestServerConfiguration

@Getter @Setter private LegalInfo legal = new LegalInfo();
@Getter @Setter private AppLinks appLinks = new AppLinks();
@Getter @Setter private String certificateValidationHost;

@Override @JsonIgnore public Handlebars getHandlebars() { return BubbleHandlebars.instance.getHandlebars(); }



+ 4
- 0
bubble-server/src/main/java/bubble/service/cloud/DeviceIdService.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.service.cloud;

import bubble.model.device.Device;


+ 4
- 0
bubble-server/src/main/java/bubble/service/stream/AppPrimerService.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.service.stream;

import bubble.model.account.Account;


+ 4
- 0
bubble-server/src/main/java/bubble/service/stream/ConnectionCheckResponse.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.service.stream;

import com.fasterxml.jackson.annotation.JsonCreator;


+ 4
- 0
bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.service.stream;

import bubble.dao.account.AccountDAO;


+ 4
- 0
bubble-server/src/main/java/bubble/service_dbfilter/DbFilterAppPrimerService.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.service_dbfilter;

import bubble.model.account.Account;


+ 4
- 0
bubble-server/src/main/java/bubble/service_dbfilter/DbFilterDeviceIdService.java ファイルの表示

@@ -1,3 +1,7 @@
/**
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/
package bubble.service_dbfilter;

import bubble.model.device.Device;


+ 3
- 1
bubble-server/src/main/resources/ansible/roles/bubble/files/bubble_role.json ファイルの表示

@@ -37,7 +37,9 @@
{"name": "app_link_android", "value": "[[appLinks.android]]"},
{"name": "app_link_windows", "value": "[[appLinks.windows]]"},
{"name": "app_link_macosx", "value": "[[appLinks.macosx]]"},
{"name": "app_link_linux", "value": "[[appLinks.linux]]"}
{"name": "app_link_linux", "value": "[[appLinks.linux]]"},

{"name": "cert_validation_host", "value": "[[configuration.certificateValidationHost]]"}
],
"optionalConfigNames": ["restore_key", "restore_timeout", "error_url", "error_key", "error_env"]
}

+ 2
- 0
bubble-server/src/main/resources/ansible/roles/bubble/templates/bubble.env.j2 ファイルの表示

@@ -20,3 +20,5 @@ export APP_LINK_ANDROID={{ app_link_android }}
export APP_LINK_WINDOWS={{ app_link_windows }}
export APP_LINK_MACOSX={{ app_link_macosx }}
export APP_LINK_LINUX={{ app_link_linux }}

export CERT_VALIDATION_HOST={{ cert_validation_host }}

+ 2
- 1
bubble-server/src/main/resources/ansible/roles/mitmproxy/files/bubble_role.json ファイルの表示

@@ -11,6 +11,7 @@
{"name": "sage_ip6", "value": "[[sageNode.ip6]]"},
{"name": "cert_name", "value": "bubble-[[network.shortId]]"},
{"name": "cert_org", "value": "Bubble [[network.shortId]]"},
{"name": "cert_cn", "value": "[[network.certCNAME]]"}
{"name": "cert_cn", "value": "[[network.certCNAME]]"},
{"name": "cert_validation_host", "value": "[[configuration.certificateValidationHost]]"}
]
}

+ 1
- 0
bubble-server/src/main/resources/ansible/roles/mitmproxy/templates/bubble_config.py.j2 ファイルの表示

@@ -6,3 +6,4 @@ bubble_ssl_port = '{{ ssl_port }}'
bubble_sage_host = '{{ sage_host }}'
bubble_sage_ip4 = '{{ sage_ip4 }}'
bubble_sage_ip6 = '{{ sage_ip6 }}'
cert_validation_host = '{{ cert_validation_host }}'

+ 2
- 0
bubble-server/src/main/resources/bubble-config.yml ファイルの表示

@@ -109,3 +109,5 @@ appLinks:
windows: {{APP_LINK_WINDOWS}}
macosx: {{APP_LINK_MACOSX}}
linux: {{APP_LINK_LINUX}}

certificateValidationHost: {{CERT_VALIDATION_HOST}}

+ 8
- 9
bubble-server/src/main/resources/message_templates/en_US/server/post_auth/ResourceMessages.properties ファイルの表示

@@ -197,7 +197,8 @@ field_description_network_fork_host=The current Sage Launcher will be forked ont
field_label_network_domain=Domain
field_label_plan=Plan
field_label_choose_plan=Choose Your Plan
message_plan_max_accounts=You can create up to {{max}} user accounts on this Bubble
message_plan_max_accounts_one=This is a single-user Bubble
message_plan_max_accounts_multiple=You can create up to {{max}} user accounts on this Bubble
message_plan_no_max_accounts=This plan supports an unlimited number of user accounts
field_label_show_advanced_plan_options=Customize Launch Options
field_label_region=Location
@@ -319,14 +320,12 @@ label_account_promotion_used=Used On
label_account_payment_method_used_format={{MMM}} {{d}}, {{YYYY}}

# Bubble Plans
plan_name_bubble=Bubble Standard
plan_description_bubble=Try this one first. Most users probably don't need anything more
plan_name_bubble_plus=Bubble Plus
plan_description_bubble_plus=Enhanced for faster performance
plan_name_bubble_pro=Bubble Pro
plan_description_bubble_pro=Two bubble nodes operate in concert to improve overall reliability
plan_name_bubble_super=Bubble Super
plan_description_bubble_super=A truly powerful bubble node
plan_name_bubble=Personal Bubble
plan_description_bubble=Enjoy your very own personal Bubble
plan_name_bubble_plus=Family Bubble
plan_description_bubble_plus=A bigger Bubble, enhanced for multi-user performance
plan_name_bubble_super=Mega Bubble
plan_description_bubble_super=Our most powerful Bubble, optimized for small businesses

# Footprints
footprint_name_US=United States


+ 5
- 1
bubble-server/src/main/resources/packer/roles/mitmproxy/files/bubble_conn_check.py ファイルの表示

@@ -28,7 +28,7 @@ from mitmproxy.exceptions import TlsProtocolException
from mitmproxy.net import tls as net_tls

from bubble_api import bubble_log, bubble_conn_check, bubble_activity_log, redis_set
from bubble_config import bubble_sage_host, bubble_sage_ip4, bubble_sage_ip6
from bubble_config import bubble_sage_host, bubble_sage_ip4, bubble_sage_ip6, cert_validation_host
import redis
import json
import subprocess
@@ -210,6 +210,10 @@ def next_layer(next_layer):
bubble_log('next_layer: enabling passthru for server='+server_addr+' because security_level='+security_level+' for client='+client_addr)
check = FORCE_PASSTHRU

elif fqdns is not None and len(fqdns) == 1 and cert_validation_host == fqdns[0]:
bubble_log('next_layer: NOT enabling passthru for server='+server_addr+' because fqdn is cert_validation_host ('+cert_validation_host+') for client='+client_addr)
return

elif security_level == SEC_STD and no_fqdns:
bubble_log('next_layer: enabling passthru for server='+server_addr+' because no FQDN found and security_level='+security_level+' for client='+client_addr)
check = FORCE_PASSTHRU


+ 1
- 1
bubble-web

@@ -1 +1 @@
Subproject commit 78257ee57adc9a557cee916e4c6030c3cc5cd831
Subproject commit cf3869232598970292724bf6c72b79d18c1d7c33

読み込み中…
キャンセル
保存