Commit Graph

73 Commits

Author SHA1 Message Date
mirsal 7ae5071cef Merge pull request 'Make the displayed SSH username configurable' (#13) from mirsal/capsul-flask:ssh-username into yolocolo
continuous-integration/drone/push Build is passing Details
Reviewed-on: #12
2021-08-10 12:00:35 +02:00
mirsal d4a9f2f40a Make the displayed SSH username configurable
continuous-integration/drone/pr Build is failing Details
This patch allows the SSH username displayed in templates to be
configured through the SSH_USERNAME environment variable.
2021-08-10 00:30:45 +00:00
mirsal d238bc9551 cosmetics: Remove trailing whitespace
continuous-integration/drone/pr Build is failing Details
2021-08-04 15:35:41 +00:00
mirsal 17c915c1bf Support dualstack ipv6 in the console controller
This commit updates the console controller logic and
a few bits in the model in order to support multiple
address families (ipv4 and ipv6)
2021-08-04 15:35:41 +00:00
3wc bcd1190f50 Fix API 🙈
continuous-integration/drone/push Build is passing Details
2021-07-29 11:36:58 +02:00
3wc cffa40c0e3 Fix up API
continuous-integration/drone/push Build is passing Details
2021-07-23 23:28:06 +02:00
3wc 6dbae94bd6 Fix typo
continuous-integration/drone/push Build is passing Details
2021-07-23 18:08:05 +02:00
3wc 42edcd1c33 Updates for upstream IP handling 2021-07-23 18:07:37 +02:00
3wc b27d5b3c5b Add basic "create" API..
.. using server-side API tokens
2021-07-23 18:07:35 +02:00
forest 08eb38dc57 correctly enforce affordable_vm_sizes post form submission 2021-07-21 16:45:53 -05:00
forest 36329796f0 define BTCPAY_ENABLED based on URL and btcpay key, pass it explicitly 2021-07-21 12:12:41 -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 862b14545b more managed ips work: cli sql improvements, added admin panel 2021-07-09 14:13:28 -05:00
forest 961bb4976b remove newlines and strip content first before parsing ssh key name 2021-05-12 12:21:26 -05:00
forest 4590671984 improve invalid ssh key name error message 2021-05-12 12:18:39 -05:00
forest e3e1059ba1 allow colons in ssh key names 2021-05-12 12:14:55 -05:00
forest 71db4b3333 allow colons in ssh key comments and adjust ssh key whitespace handling 2021-05-12 11:48:55 -05:00
forest 70628039c4 fix wrong var name 2021-02-17 21:57:57 -06:00
forest 88905b944d clean up massive onliner 2021-02-17 21:57:09 -06:00
forest fa0ddad5f5 fix missing paren 2021-02-17 21:46:46 -06:00
forest 1de0388df2 fine-tuning vm list page ip display depending on state 2021-02-17 21:29:03 -06:00
forest ea1eec7f92 fixing exception in capsul detail 2021-02-17 21:10:20 -06:00
forest fd5d23cf22 prevent keyError when double_check_capsul_address returns None 2021-02-17 20:56:52 -06:00
forest ba0b29462c first try at implementing the vm start and stop feature 2021-02-17 20:50:17 -06:00
forest e8348052a8 fixing get inconsistency and adding vm_state_command 2021-02-16 21:13:51 -06:00
forest ab4c94e37c correctly test for none result in double_check_capsul_address 2021-02-15 20:32:24 -06:00
forest af272a6b70 Revert "temporarily thow exception from check capsul addr"
This reverts commit 1fd3ccb8a3.
2021-02-15 20:27:17 -06:00
forest 1fd3ccb8a3 temporarily thow exception from check capsul addr 2021-02-15 20:13:04 -06:00
forest 0a70c974ec ssh_public_keys -> ssh_authorized_keys rename (merge fix) 2021-02-15 19:44:26 -06: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 c849ec3c11 add 25 cent buffer to affordable_vm_sizes logic for UX 2021-01-30 15:27:24 -06:00
forest 280bcfd584 check null on double_check_capsul_address 😬 2021-01-30 02:10:22 -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 40016ecbe6 fix debug code again :( 2021-01-29 00:22:19 -06:00
forest 7914a2e518 fix "datetime is not JSON serializable" err in debug log code 2021-01-29 00:19:05 -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 9fb6d58e1a fix remnants of list_ids being an async operation 2021-01-04 15:18:50 -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 c59dc21ba6 starting work on hub mode and spoke mode -- implemented hub model 2021-01-02 17:10:01 -06:00
forest d8d6124005 forest uncommitted changes on multi-host branch 2020-12-29 17:34:43 -06:00
vvesley ee7f0dbfe2 Show VMs that you can afford 2020-06-27 18:06:58 +00:00
forest fd7dd7390f implement anti-csrf measures in all posted forms 2020-05-22 16:04:47 -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
j3s e3f4de214c Strip out deleted VMs before passing them to shell scripts 2020-05-20 18:37:53 -05:00
j3s 8962345fd2 Merge branch 'master' of giit.cyberia.club:~forest/capsul-flask 2020-05-17 14:19:15 -05:00
j3s 5b8f62a16c Correct regex with non-wildcard, always check name 2020-05-17 14:19:10 -05:00
forest 62a062fff2 fix bug when created query string is not present 2020-05-16 23:28:21 -05:00