~codersquid/snappy-hwe-snaps/+git/wifi-connect:graceful-https-server

Last commit made on 2017-07-07
Get this branch:
git clone -b graceful-https-server https://git.launchpad.net/~codersquid/snappy-hwe-snaps/+git/wifi-connect
Only Sheila Miguez can upload to this branch. If you are Sheila Miguez please log in for upload directions.

Branch merges

Branch information

Name:
graceful-https-server
Repository:
lp:~codersquid/snappy-hwe-snaps/+git/wifi-connect

Recent commits

07d0530... by Sheila Miguez on 2017-07-07

support https with self signed certificates

This change supports https connections and removes support for http.
Included in this change are:

Self signed certificates

* Code for self signing certificates was taken and modified from
  snapweb with minor alterations for how errors are handled.

Server that supports TLS connections

* The launcher server implentation was replaced with a 3rd party
  library, graceful.
* Graceful is a 3rd party implentation of server that supports TLS
  connections with graceful shutdown in a way similar to go 1.8. When
  we upgrade to go 1.8 we can drop this dependency and the code in
  manager that uses it.

State management

* Server state is no longer used in the daemon. It's used in the server.
* Flag files are no longer managed in both the server and daemon, they
  are managed in the daemon.

1289197... by Sheila Miguez on 2017-07-06

reuse self-signing cert package from snapweb

This reuses snapweb code with some minor changes

* instead of fatal errors, we return errors and allow callers to decide
  how to handle failures
* files are stored in SNAP_COMMON rather than SNAP_DATA

9e35a3d... by System Enablement CI Bot <email address hidden> on 2017-07-05

Merge remote tracking branch fix-scriptlet-to-include-hook-always

Merge-Proposal: https://code.launchpad.net/~rmescandon/snappy-hwe-snaps/+git/wifi-connect/+merge/326532

Author: Roberto Mier Escandón  <email address hidden>

Include hook in snap regardless of SKIP_TESTS environment var

bbd4f27... by System Enablement CI Bot <email address hidden> on 2017-07-04

Merge remote tracking branch log-settings

Merge-Proposal: https://code.launchpad.net/~codersquid/snappy-hwe-snaps/+git/wifi-connect/+merge/325739

Author: Sheila Miguez <email address hidden>

This change configures logging with a prefix and with some helpful information.

The prefix string "== wifi-connect" will not need to be added by hand to calls to the logger anymore.

The log lines will also have helpful information, <prefix> YYYY/MM/DD HH:TT:SS <filename>:<linenumber>

406b82e... by Sheila Miguez on 2017-07-03

revert number of max iterations in spread test back to 20

accidentially checked in a local change

2f90162... by Sheila Miguez on 2017-07-03

fix typo in log settings

485ff5a... by Sheila Miguez on 2017-07-03

merge most recent master, change log settings

* merged master and updated the logging for the next contents
* found that the long file flag option for logging is obnoxious and switched back to short
* the spread test that grepped for '== wifi-connect: <msg>' didn't account for filename. I changed it to only check for msg.

8be6f17... by Roberto Mier Escandón  on 2017-06-29

remove not needed snapcraft state

6642d7a... by Roberto Mier Escandón  on 2017-06-29

include hook regardless of skipping tests or not

d8fe23b... by System Enablement CI Bot <email address hidden> on 2017-06-29

Merge remote tracking branch defaults

Merge-Proposal: https://code.launchpad.net/~knitzsche/snappy-hwe-snaps/+git/wifi-connect/+merge/326172

Author: Kyle Nitzsche <email address hidden>

Add configure hook to port certain snap wifi-connect keys into SNAP_COMMON/pre-config.json.

Deamon (service/service.go and daemon pkg) uses SetDefaults() to use the json to take the appropriate actions. [1]

docs/ added this, including integrate.md to doc the exactl preconfiguration stuff for system intergrators.

wifiap/wifiap.go: added Wifiaper interface to make wifiap unit-testable in SetDefaults()

Enhanced daemon_test.go TestSetDefaults to handle various preconfigs via static/tests/pre-config*.json

[1] https://docs.google.com/document/d/1QaKcHikGi6ttuKLgT2Id42-hQXRng1B68ucxEK-2zws/edit#heading=h.ikzb28sk2cu3