-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from grisp/sylane/cleanup
Cleanup, use grisp_cryptoauth TLS helper and start supporting grisp_updater
- Loading branch information
Showing
21 changed files
with
220 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,7 @@ rebar3.crashdump | |
*~ | ||
.DS_Store | ||
doc | ||
.tool-versions | ||
eeprom_*.dat | ||
dummy.img | ||
priv/server/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[ | ||
{grisp_cryptoauth, [ | ||
{tls_server_trusted_certs, {priv, grisp_connect, "server"}} | ||
]}, | ||
|
||
{grisp_connect, [ | ||
{domain, "www.seawater.local"}, | ||
{port, 8443} | ||
]}, | ||
|
||
{kernel, [ | ||
{logger_level, info}, | ||
{logger, [ | ||
{handler, default, logger_std_h, #{ | ||
config => #{type => standard_io}, | ||
filters => [ | ||
% Filter out supervisor progress reports so | ||
% TLS certificates are not swamping the console... | ||
{filter_out_progress, { | ||
fun grisp_connect_logger_bin:filter_out/2, | ||
{supervisor, report_progress}}} | ||
] | ||
}} | ||
]} | ||
]} | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
{grisp, [ | ||
{emulation, {grisp2, grisp_emulation}} | ||
]}, | ||
|
||
{grisp_cryptoauth, [ | ||
{tls_server_trusted_certs, {priv, grisp_connect, "server"}}, | ||
{tls_client_truste_certs, {test, grisp_connect, "certs/CA.crt"}}, | ||
{client_certs, {test, grisp_connect, "certs/client.crt"}}, | ||
{client_key, {test, grisp_connect, "certs/client.key"}} | ||
]}, | ||
|
||
{grisp_updater, [ | ||
{system, {grisp_updater_dummy, #{}}}, | ||
{sources, [ | ||
{grisp_updater_tarball, #{}}, | ||
{grisp_updater_http, #{ | ||
backend => {grisp_updater_grisp2, #{}} | ||
}} | ||
]} | ||
]}, | ||
|
||
{grisp_connect, [ | ||
{domain, "www.seawater.local"}, | ||
{port, 8443} | ||
]}, | ||
|
||
{kernel, [{logger_level, debug}]} | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
[ | ||
{grisp_cryptoauth, [ | ||
{tls_server_trusted_certs_cb, {certifi, cacerts, []}} | ||
]}, | ||
|
||
{grisp_connect, [ | ||
{device_linking_token, <<"...">>} | ||
]} | ||
]}, | ||
|
||
{kernel, [{logger_level, notice}]} | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
149.248.205.211 devices.grisp.io | ||
37.16.30.91 devices.stage.grisp.io | ||
212.25.1.1 0.europe.pool.ntp.org |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
{erl_opts, [debug_info]}. | ||
{deps, [ | ||
grisp, | ||
certifi, | ||
{grisp, "~> 2.5"}, | ||
{gun, "2.1.0"}, | ||
jsx | ||
]}. | ||
|
||
{shell, [ | ||
{config, "config/sys.config"}, | ||
{apps, [grisp_connect]} | ||
jsx, | ||
{grisp_cryptoauth, "~> 2.4"} | ||
]}. | ||
|
||
{plugins, [rebar3_grisp, rebar3_ex_doc]}. | ||
|
@@ -24,11 +19,6 @@ | |
]} | ||
]}. | ||
|
||
{relx, [ | ||
{sys_config, "config/sys.config"}, | ||
{release, {grisp_connect, "0.1.0"}, [grisp_connect]} | ||
]}. | ||
|
||
{hex, [{doc, #{provider => ex_doc}}]}. | ||
|
||
{ex_doc, [ | ||
|
@@ -45,30 +35,41 @@ | |
]}. | ||
|
||
{profiles, [ | ||
{grisp, [ | ||
{deps, [ | ||
{grisp_cryptoauth, "2.3.0"} | ||
{prod, [ | ||
{deps, [certifi]}, | ||
{relx, [ | ||
{release, {grisp_connect, "0.1.0"}, [certifi, grisp_connect]}, | ||
{sys_config, "config/sys.config"} | ||
]} | ||
]}, | ||
{prod, [ | ||
{dev, [ | ||
{relx, [ | ||
{release, {grisp_connect, "0.1.0"}, [grisp_connect]}, | ||
{sys_config, "config/dev.config"} | ||
]} | ||
]}, | ||
{local, [ | ||
{deps, [ | ||
{grisp_cryptoauth, "2.3.0"} | ||
{grisp_emulation, "0.2.2"}, | ||
{grisp_updater_grisp2, {git, "https://github.com/grisp/grisp_updater_grisp2.git", {branch, "main"}}} | ||
]}, | ||
{overrides, [ | ||
{add, grisp_cryptoauth, [{erl_opts, [{d, 'EMULATE_CRYPTOAUTH'}]}]} | ||
]}, | ||
{shell, [ | ||
{apps, [grisp_emulation, grisp_updater_grisp2, grisp_connect]}, | ||
{config, "./config/local.config"} | ||
]} | ||
]}, | ||
{test, [ | ||
{overrides, | ||
[{add, eresu, [ | ||
{erl_opts, [{d,'TEST'}]}] | ||
}] | ||
}, | ||
{deps, [ | ||
{grisp_emulation, "0.2.0"}, | ||
{grisp_emulation, "0.2.2"}, | ||
{grisp_manager, {git, "[email protected]:stritzinger/grisp_manager", {branch, "main"}}} | ||
]}, | ||
{ct_opts, [{sys_config, "./config/test.config"}]}, | ||
{shell, [ | ||
{apps, [grisp_emulation, grisp_connect]}, | ||
{config, "config/test.config"} | ||
]} | ||
{overrides, [ | ||
{add, eresu, [{erl_opts, [{d, 'TEST'}]}]}, | ||
{add, grisp_cryptoauth, [{erl_opts, [{d, 'EMULATE_CRYPTOAUTH'}]}]} | ||
]}, | ||
{ct_opts, [{sys_config, "./config/test.config"}]} | ||
]} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.