Support uploaded config, add 'publish-webapp-deployer' and 'request-webapp-deployment' commands #938

Merged
telackey merged 12 commits from telackey/configupload into main 2024-08-27 19:55:07 +00:00
Member

This adds two new commands: publish-webapp-deployer and request-webapp-deployment.

publish-webapp-deployer creates a WebappDeployer record, which provides information to requestors like the API URL, minimum required payment, payment address, and public key to use for encrypting config.

$ laconic-so publish-deployer-to-registry \
  --laconic-config ~/.laconic/laconic.yml \
  --api-url https://webapp-deployer-api.dev.vaasl.io \
  --public-key-file webapp-deployer-api.dev.vaasl.io.pgp.pub  \
  --lrn lrn://laconic/deployers/webapp-deployer-api.dev.vaasl.io  \
  --min-required-payment 100000

request-webapp-deployment simplifies publishing a WebappDeploymentRequest and can also handle automatic payment, and encryption and upload of configuration.

$ laconic-so request-webapp-deployment \
  --laconic-config ~/.laconic/laconic.yml \
  --deployer lrn://laconic/deployers/webapp-deployer-api.dev.vaasl.io \
  --app lrn://cerc-io/applications/webapp-hello-world@0.1.3 \
  --env-file ~/yaml/hello.env \
  --make-payment auto

Related changes are included for the deploy/undeploy commands for decrypting and using config, using the payment address from the WebappDeployer record, etc.

This adds two new commands: `publish-webapp-deployer` and `request-webapp-deployment`. `publish-webapp-deployer` creates a `WebappDeployer` record, which provides information to requestors like the API URL, minimum required payment, payment address, and public key to use for encrypting config. ``` $ laconic-so publish-deployer-to-registry \ --laconic-config ~/.laconic/laconic.yml \ --api-url https://webapp-deployer-api.dev.vaasl.io \ --public-key-file webapp-deployer-api.dev.vaasl.io.pgp.pub \ --lrn lrn://laconic/deployers/webapp-deployer-api.dev.vaasl.io \ --min-required-payment 100000 ``` `request-webapp-deployment` simplifies publishing a `WebappDeploymentRequest` and can also handle automatic payment, and encryption and upload of configuration. ``` $ laconic-so request-webapp-deployment \ --laconic-config ~/.laconic/laconic.yml \ --deployer lrn://laconic/deployers/webapp-deployer-api.dev.vaasl.io \ --app lrn://cerc-io/applications/webapp-hello-world@0.1.3 \ --env-file ~/yaml/hello.env \ --make-payment auto ``` Related changes are included for the deploy/undeploy commands for decrypting and using config, using the payment address from the WebappDeployer record, etc.
telackey added 1 commit 2024-08-24 05:01:56 +00:00
lint
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 35s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m42s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m48s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 9m11s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 10m26s
Smoke Test / Run basic test suite (pull_request) Successful in 4m27s
145271464b
telackey added 1 commit 2024-08-24 05:43:13 +00:00
Decrypt
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 41s
Smoke Test / Run basic test suite (pull_request) Successful in 5m27s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m27s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m51s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 7m31s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m13s
d808da4314
telackey added 1 commit 2024-08-24 05:54:12 +00:00
Passphrase
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 42s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m37s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m0s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 7m46s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m33s
Smoke Test / Run basic test suite (pull_request) Successful in 4m19s
970351db92
dboreham reviewed 2024-08-26 04:33:48 +00:00
@ -40,3 +42,3 @@
# url is like: https://example.com/path
parsed_url = urlparse(url)
http_proxy_spec = f'''
http_proxy_spec = f"""
Owner

What's going on here?

What's going on here?
Author
Member

linted the wrong file. Backed out...

linted the wrong file. Backed out...
telackey marked this conversation as resolved
telackey added 1 commit 2024-08-26 18:58:42 +00:00
Update undeploy
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 36s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m30s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m10s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 8m29s
Smoke Test / Run basic test suite (pull_request) Successful in 5m8s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 11m13s
004b5ab8fe
telackey added 1 commit 2024-08-26 19:02:57 +00:00
Unchanged.
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 57s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m36s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m47s
Smoke Test / Run basic test suite (pull_request) Successful in 4m49s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m45s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 12m13s
f90e0e2969
telackey added 1 commit 2024-08-26 22:08:33 +00:00
Typo
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 33s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m9s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m54s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m56s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m51s
Smoke Test / Run basic test suite (pull_request) Successful in 4m12s
595cba255b
telackey added 1 commit 2024-08-26 23:54:37 +00:00
Check authorization
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 34s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m54s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m42s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m43s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m54s
Smoke Test / Run basic test suite (pull_request) Successful in 4m24s
08b50f983d
telackey added 1 commit 2024-08-27 03:23:20 +00:00
lint
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 37s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m3s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m36s
Smoke Test / Run basic test suite (pull_request) Successful in 5m6s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 7m51s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m22s
1f5549a8bb
telackey changed title from WIP: Upload Config to Support uploaded config, add 'publish-webapp-deployer' and 'request-webapp-deployment' commands 2024-08-27 03:24:31 +00:00
telackey requested review from dboreham 2024-08-27 03:31:56 +00:00
telackey added 1 commit 2024-08-27 03:33:06 +00:00
No lint
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 37s
Smoke Test / Run basic test suite (pull_request) Successful in 5m4s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m8s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m53s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 8m27s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 10m28s
f0020f3b18
telackey reviewed 2024-08-27 03:34:12 +00:00
@ -261,3 +261,3 @@
full_path = os.path.join(cfg_map_path, f)
if os.path.isfile(full_path):
data[f] = open(full_path, 'rt').read()
data[f] = base64.b64encode(open(full_path, 'rb').read()).decode('ASCII')
Author
Member

This lets us support non-text files in the configmap, like a binary certificate or key.

This lets us support non-text files in the configmap, like a binary certificate or key.
telackey added 1 commit 2024-08-27 03:37:21 +00:00
when
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 37s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m11s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m40s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m51s
Smoke Test / Run basic test suite (pull_request) Successful in 5m12s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Failing after 23m14s
b248e78f10
telackey added 1 commit 2024-08-27 03:40:16 +00:00
space
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 40s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m38s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m14s
Smoke Test / Run basic test suite (pull_request) Successful in 4m50s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m52s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m13s
5490093835
telackey added 1 commit 2024-08-27 19:45:03 +00:00
Merge branch 'main' into telackey/configupload
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 35s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m51s
Smoke Test / Run basic test suite (pull_request) Successful in 4m45s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m32s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 7m29s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m57s
f800d57c07
telackey merged commit fa21ff2627 into main 2024-08-27 19:55:07 +00:00
telackey deleted branch telackey/configupload 2024-08-27 19:55:07 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#938
No description provided.