Dimitri John Ledkov
d55f3123d4
go: go fix with 1.18
...
Apply `go fix ./...` to the whole code base using go-1.18 to remove
old build tags.
2023-09-25 13:22:14 +02:00
Miguel Pires
13209fc52c
many: fix formatting w/ latest go version
...
Fix formatting when running the latest version (1.17) of gofmt.
2021-12-08 13:59:56 +00:00
Samuele Pedroni
f2cdb6dd92
asserts,interfaces,snap: fix imports order (according to gci)
2021-06-14 20:54:41 +02:00
Samuele Pedroni
7b80989528
o/devicestate,a/sysdb: make a backup of the device serial to save
...
this is done in a full ancillary assertion database placed there,
this would make it easier to backup more assertions if needed
2020-10-30 13:22:54 +01:00
Samuele Pedroni
ff75820357
many: introduce snapdenv.UseStagingStore
2020-03-15 16:40:25 +01:00
Samuele Pedroni
3c5f9613b6
many: switch to account validation: unproven|verified ( #5419 )
2018-06-28 08:56:48 +02:00
Samuele Pedroni
df365ffdb2
panic early if snapd is pointed to staging but the staging keys are not compiled-in
2017-11-17 14:04:21 +01:00
Samuele Pedroni
b8a7cf7c4a
overlord: always try to get a serial, lazily on classic ( #3573 )
...
Always try to get a serial even on classic, but if there is no gadget nor no non-default store wait until some snaps are installed or being installed, use the hard coded 'generic/generic-classic' model as fallback for the cases where there is no model/seeding data.
2017-08-30 23:45:13 +02:00
Samuele Pedroni
a9f2339044
support 'generic' authority
2017-08-12 16:26:01 +02:00
John R. Lenton
a606cf68b5
review feedback
2016-11-23 21:51:02 +00:00
John R. Lenton
5241ccb8bb
many: unify boolean env var handling
2016-11-23 21:51:02 +00:00
Samuele Pedroni
b3683d367b
reshuffle how we load/inject tests keys both in snapd and for prepare-image, so image doesn't need to import assertstate anymore
2016-11-17 12:02:40 +01:00
Matt Goodall
d77f1de2dc
Use different name for trusted staging account-key as workaround.
...
The spread tests mix prod and staging asserts :/ which causes unique
name check errors.
2016-09-06 12:43:32 +01:00
Matt Goodall
72ae28ae08
Replace prod root account-key with version with a name.
2016-09-06 09:40:42 +01:00
Matt Goodall
60908e4179
Replace staging root account-key with version with a name.
2016-09-05 16:22:57 +01:00
Samuele Pedroni
867e09f669
teach testing snapd the keys to verify staging assertions
2016-08-24 09:39:32 +02:00
Samuele Pedroni
24aad974cb
fix unit test referencing trusted key
2016-08-20 15:41:11 +02:00
Samuele Pedroni
919f88810b
* embed the new format official root/trusted assertions
...
* fix debian/rules keys check
2016-08-20 15:05:02 +02:00
Samuele Pedroni
86436f0a96
fix test
2016-08-11 19:11:12 +02:00
Samuele Pedroni
1bd6ee1388
switch fixed pub key timestamp to 2016 Jan 1
2016-08-11 18:51:21 +02:00
Matt Goodall
e5464989c2
Replace trusted account assert with one that contains a username!
2016-08-05 10:40:35 +01:00
Matt Goodall
7d1c2deda9
Add temporary trusted asserts to sysdb to get tests to pass.
2016-08-04 17:00:58 +01:00
Samuele Pedroni
9c10672cc1
lookup keys by sign-key-sha3-384 and related changes
2016-08-02 16:00:07 +02:00
Samuele Pedroni
b54d21be4c
use new parseHeaders, start supporting structured headers (switch from map[string]string to map[string]interface{} except when querying for now), fix/adapt tests
2016-07-27 15:22:36 +02:00
Samuele Pedroni
bcb7b95e51
cleanup naming and signatures as suggested
2016-07-11 10:38:19 +02:00