Commit Graph

42 Commits

Author SHA1 Message Date
forest 79ef90c380 hub allocate capsul IP addr when the create operation is being claimed
create.sh will now be passed two extra arguments from the web app:

network_name and public_ipv4_address

network_name will be virbr1 or virbr2 or whatever the network is called
and public_ipv4_address will be an ipv4 from that network which is not
currently being used
2021-07-09 17:08:51 -05:00
forest 862b14545b more managed ips work: cli sql improvements, added admin panel 2021-07-09 14:13:28 -05:00
forest e685c8a773 start working on managed IPs 2021-07-08 14:10:14 -05:00
forest 46a691b876 temporarily disable serializable transactions
until this can get figured out better
2021-03-23 16:03:48 -05:00
forest c623c65fda Limit the utilization of serializable transactions
A user encountered this error when deleting a vm:

self.cursor.execute("UPDATE vms SET deleted = now() WHERE email = %s AND
id = %s", ( email, id))

psycopg2.errors.SerializationFailure: could not serialize access due to
read/write dependencies among transactions
2021-03-23 15:59:17 -05:00
forest 8717ad477e Revert "fix postgres serializable transaction"
This reverts commit 0a70ea8a95.
2021-03-21 12:28:19 -05:00
forest 0a70ea8a95 fix postgres serializable transaction 2021-03-21 12:16:17 -05:00
forest dad6547825 Merge branch 'master' into multiple-hosts
Conflicts:
	capsulflask/console.py
	capsulflask/db.py
	capsulflask/shared.py
	capsulflask/virt_model.py
2021-02-15 17:52:17 -06:00
forest 645ddede02 fix a bug where accumulating stale login tokens can lock out an account 2021-01-31 18:02:46 -06:00
forest a7c61f01df remove extra debug logs 2021-01-30 01:42:27 -06:00
forest 50cea6e0b4 first crack at adding ssh host key display to the capsul detail page 2021-01-30 01:39:48 -06:00
forest 274c7a2c76 add logging around ssh keys to capsul creation to support a user who is
experiencing bugs
2021-01-29 00:13:32 -06:00
forest 4833c6250b create capsul is working 2021-01-04 15:02:56 -06:00
forest 6764c5c97d got httpclient working, spoke heartbeat is working 2021-01-04 13:32:52 -06:00
forest d9c30e1ef8 trying to set up assignment of create operation 2021-01-03 19:17:30 -06:00
forest c59dc21ba6 starting work on hub mode and spoke mode -- implemented hub model 2021-01-02 17:10:01 -06:00
forest eba3bd6a5a fixing bugs with email ignore case feature 2020-12-29 19:03:37 -06:00
forest ff38858c74 fixing login email case sensitivity issues 2020-12-29 18:42:38 -06:00
forest d8d6124005 forest uncommitted changes on multi-host branch 2020-12-29 17:34:43 -06:00
forest 44738c78a9 first steps towards multiple hosts -- schema & heartbeat 2020-12-10 20:32:43 -06:00
forest e6021324f7 fix exceptions related to btcpay HTTP calls. better cleanup of expired
btcpay invoices.
2020-07-18 10:16:17 -05:00
forest 672ff49d6d implement content-security-policy, static assets cache bust, and fix
stripe back button ratchet issue

because the only way to use stripe checkout is to run their proprietary
JS, and we arent using a SPA, naturally what happens is, when you land
on the stripe payment page if you hit the back button it goes back to
the same page where you got re-directed to stripe. this commit fixes
that.
2020-05-22 15:20:26 -05:00
forest e2c51d067e implement ensure_vms_and_db_are_synced in cron task and add default
sender to readme
2020-05-21 21:40:41 -05:00
forest 5a4c67d202 WHERE deprecated = FALSE os_images 2020-05-19 23:04:28 -05:00
forest 2b04463e4e switch to polling for btcpay payment sessions because btcpay web hooks
are super duper slow
2020-05-16 22:04:51 -05:00
forest 26340f118f trying to fix logging 2020-05-15 23:19:01 -05:00
forest e9dcf80f6c btcpay working! added bitpay client code to source tree to fix a bug
fixed a stripe race condition

added account balance warning to account balance page
2020-05-15 18:18:19 -05:00
forest 0434c4d43b implement deleting capsuls 2020-05-15 12:23:42 -05:00
forest d1078b8f30 started working on cron job task 2020-05-14 23:40:27 -05:00
forest 0dc58ed6a8 add sql cli and explain it in the readme 2020-05-14 20:05:02 -05:00
forest 8de802aff5 btcpay generating invoices and payments can be invalidated 2020-05-14 18:03:00 -05:00
forest 30464ac8e5 metrics are working!!! 2020-05-13 00:28:53 -05:00
forest 7337375ae8 stripe tested and working 2020-05-12 13:04:35 -05:00
forest 08e23cf0d1 stripe payment processor 2020-05-12 12:38:36 -05:00
forest 5df06dc1b3 Your account does not have sufficient funds to create a Capsul 2020-05-11 22:59:36 -05:00
forest d7ddf37cfa fine-tuning and starting to work on account-balance 2020-05-11 20:34:12 -05:00
forest a6e655ef72 basic capsul detail page 2020-05-11 16:24:37 -05:00
forest 231d1ed7c0 create capsul and capsuls list page working 2020-05-11 15:13:20 -05:00
forest 452f236c6b SSH keys CRUD working 2020-05-11 11:57:39 -05:00
forest 18e6a1b141 starting to build console controller and views 2020-05-11 01:47:14 -05:00
forest d706ae7761 updating virt_model with email and 2020-05-10 20:23:00 -05:00
forest 426fad7b10 first try at creating VirtualizationInterface 2020-05-10 18:59:30 -05:00