Commit Graph

56 Commits

Author SHA1 Message Date
forest 1376525c9e admin broadcast message feature 2022-04-11 14:42:47 -05:00
forest 5167b3a5f3 psycopg2 not all arguments converted during string formatting
https://stackoverflow.com/questions/21524482/psycopg2-typeerror-not-all-arguments-converted-during-string-formatting
2022-02-09 12:17:57 -06:00
forest ec0d3b1740 short-term and long-term capsuls 2022-02-08 17:16:52 -06:00
forest cd26fcec5d skip assigning IP on creation and add back update_vm_ip for now
because IP assignment on creation isn't done yet (need to manage MAC
address)
2021-12-19 12:10:32 -06:00
forest 5637da73ec desired_state column to be updated when the user starts/stops vm 2021-12-17 17:38:28 -06:00
forest 4bbacffeae refactor get_all_by_host_and_network to get_all_by_id 2021-12-10 19:53:14 -05:00
forest 37babae903 fix sql syntax error 2021-12-09 17:39:40 -06:00
forest c7469f2acb first draft of full implementation with net_set_dhcp 2021-12-09 17:25:44 -06:00
forest 1e9043bbf2 clean up and add email display to admin panel 2021-12-09 15:11:03 -06:00
forest b3f62018ea Admin Megaphone: Email All Users With Active Capsuls 📢 2021-12-09 11:21:33 -06:00
forest a93a97c66c save unsaved files 2021-12-05 16:50:55 -06:00
forest cc349d266f working on support for managing VM state and IP address 2021-12-05 16:47:37 -06:00
forest 06a2bd3a6f add public_ipv4_first_usable_ip, public_ipv4_last_usable_ip 2021-07-12 14:38:56 -05:00
forest fcbea1e29b fixing capsul creation after I broke it with the pre-allocated IP
address changes
2021-07-11 12:18:58 -05:00
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