Commit Graph

41 Commits

Author SHA1 Message Date
05ae7fb9db README 2024-08-30 11:52:39 -05:00
fbdeba9eed \ 2024-08-27 15:00:21 -05:00
3372ce29f3 Support uploading config files. (#14)
This adds a new `/upload/config` endpoint to the API for uploading encrypted configuration files for later use by the deployer.

The payload takes the form:

```
authorized:
  - accounta
  - accountb
config:
  env:
    FOO: bar
    BAR: baz
```

The request is the encrypted using the deployer's public key (discoverable from its `WebappDeployer` record).  This is handled automatically by `laconic-so` but can also be handled manually using standard CLI tools like `gpg` and `curl`.

For example:

```
# Get the key
$ laconic -c ~/.laconic/testnet-a-cercio.yml registry name resolve lrn://laconic/deployers/webapp-deployer-api.dev.vaasl.io | jq -r '.[0].attributes.publicKey' | base64 -d > webapp-deployer-api.dev.vaasl.io.pgp.pub

# Import it
$ gpg --import webapp-deployer-api.dev.vaasl.io.pgp.pub

# Encrypt your config file.
$ gpg --yes --encrypt --recipient webapp-deployer-api.dev.vaasl.io --trust-model always config.yaml

# Post it
$ curl -s -X POST -d '@config.yaml.gpg' https://webapp-deployer-api.dev.vaasl.io/upload/config | jq
{
  "id": "B56C65AB96B741B7B219520A3ABFCD10"
}
```

Reviewed-on: cerc-io/webapp-deployment-status-api#14
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2024-08-27 19:44:52 +00:00
30b349ea49 Log if the deployer command fails. (#12)
Reviewed-on: cerc-io/webapp-deployment-status-api#12
2024-08-15 00:28:52 +00:00
c9345b0d18 Merge pull request 'unpin cli version' (#9) from zramsay-patch-4 into main
Reviewed-on: cerc-io/webapp-deployment-status-api#9
2024-08-13 18:47:23 +00:00
1e72b522a4 unpin cli version 2024-08-01 11:59:49 +00:00
98348389b7 Back to v2 now 2024-07-27 14:18:27 -05:00
8c1db45361 Pin laconic-registry-cli to 0.1.x 2024-07-27 10:51:46 -05:00
fe12f91e6d Merge pull request 'pin laconic cli version' (#7) from zramsay-patch-3 into main
Reviewed-on: cerc-io/webapp-deployment-status-api#7
2024-07-24 01:05:11 +00:00
be268d21f6 pin laconic cli version 2024-07-24 00:45:09 +00:00
bb3a521732 Merge pull request 'crn -> lrn' (#6) from zach/rename into main
Reviewed-on: cerc-io/webapp-deployment-status-api#6
2024-07-24 00:40:53 +00:00
zramsay
4bee6fc492 crn -> lrn 2024-07-23 20:40:14 -04:00
d4918113f2 Merge pull request 'Update src/deployments.ts' (#3) from zramsay-patch-2 into main
Reviewed-on: cerc-io/webapp-deployment-status-api#3
2024-07-23 16:41:24 +00:00
9673911de2 Merge pull request 'add example .env' (#2) from zramsay-patch-1 into main
Reviewed-on: cerc-io/webapp-deployment-status-api#2
2024-07-23 16:41:09 +00:00
975f64f539 Update src/config.ts 2024-07-22 17:36:40 +00:00
698e630a18 Update src/deployments.ts 2024-07-12 17:09:18 +00:00
3c3bec5438 add example .env 2024-05-23 15:25:35 +00:00
6adc0af591 Add FQDN_POLICY env. 2024-04-15 14:26:37 -05:00
c6309fc875 new config name 2024-03-25 14:46:59 -05:00
819b691249 Restart API if needed. 2024-03-25 11:50:40 -05:00
9fe733306a Update SDK 2024-02-28 21:58:08 -06:00
b9cdc036ed try/catch 2024-02-28 19:09:29 -06:00
ad3e01b2ee r can be null 2024-02-29 01:05:55 +00:00
359607488c Prune dangling images 2024-02-28 04:36:20 +00:00
fb6ad1030f Only remove images if we have any. 2024-02-28 00:35:30 +00:00
14646f42b2 Add more cleanup options. 2024-02-27 23:59:16 +00:00
a3219605e3 buildx 2024-02-23 19:27:52 -06:00
69a3465bfd 24.0.9 2024-02-23 19:13:38 -06:00
aa67dc94c1 Support buildx imagetools 2024-02-23 18:50:36 -06:00
a39f2296da Workaround 'podman manifest' bug by including static docker as well. 2024-02-23 11:20:30 -06:00
1bbfbf399f :id/log instead of /log/:id 2024-02-19 16:53:32 -06:00
ecc21cb935 Normalize / and /{id} responses. 2024-02-19 16:40:41 -06:00
4f0fb236bd Typo 2024-02-15 14:09:25 -06:00
5160a3f692 Add log API 2024-02-15 13:55:48 -06:00
1168a00d33 Remove commented out lines. 2024-02-08 18:51:53 -06:00
ebb3376e2d Add new update state option 2024-02-09 00:22:47 +00:00
e8b25c1e6a Fixes for prod k8s 2024-02-09 00:17:26 +00:00
8ee61c4ebe Add tag and logging options. 2024-02-07 15:58:19 -06:00
ddd4df92a2 Add logs and update laconic-so URL. 2024-02-06 16:35:58 -06:00
3da2b57b3f Basic docker/k8s setup. 2024-02-02 19:39:21 -06:00
32a30a9c01 Initial commit 2024-01-18 20:17:30 -06:00