Pg-spot-operator

Latest version: v0.9.12

Safety actively analyzes 688674 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.9.11

-------------------
- Release: version 0.9.11 🚀 [Kaarel Moppel]
- README - update the Docker usage example. [Kaarel Moppel]

Use region us-east-1 to be in sync with PyPI quickstart
- Fix EBS volumes re-mounting. [Kaarel Moppel]

Re-attach didn't work in case device had nvme1 in name
- Merge pull request 104 from pg-spot-ops/fix-price-fetching-for-
running-instances. [Kaarel Moppel]

Spot price displaying of running instances was flawed
- Add small explanation why need to use boto3 pricing API when AZ set.
[Kaarel Moppel]
- Spot price displaying of running instances was flawed. [Kaarel Moppel]

Didn't work after an engine restart

0.9.10

-------------------
- Release: version 0.9.10 🚀 [Kaarel Moppel]
- Ansible - fix APT cache for recently added fail2ban role. [Kaarel
Moppel]

1h caching for other APT updates also to speed things up a bit
- Merge pull request 103 from pg-spot-ops/exclude-previously-fast-
failed-instance-types-from-creation. [Kaarel Moppel]

Better uptime - create previously fast-failed instance types as last resort only
- Change short lifetime optimization strategy - just reorder. [Kaarel
Moppel]

Instead of actually removing instance types from the shortlist. If all
shortlist members had evictions then re-apply eviction rate based
sorting
- More uptime - exclude previous short lifetime instance types on
create. [Kaarel Moppel]

We'll go to higher priced instance types if previous ran <5min within a
30min window
- Merge pull request 102 from pg-spot-ops/python-test-matrix. [Kaarel
Moppel]

CI test / lint on all modern Python versions
- Fix a Py 3.10 linter issue. [Kaarel Moppel]
- CI test / lint on all modern Python versions. [Kaarel Moppel]

0.9.9

------------------
- Release: version 0.9.9 🚀 [Kaarel Moppel]
- Fix unterminated string literal for Python 3.10. [Kaarel Moppel]

From last PR: approx_rds_x = f"{math.ceil(

0.9.8

------------------
- Release: version 0.9.8 🚀 [Kaarel Moppel]
- Appease linter. [Kaarel Moppel]

pg_spot_operator/cli.py:619: error: Argument 1 to "add_rows" of "PrettyTable" has incompatible type "list[tuple[Any, ...]]"; expected "Iterable[list[Any]]" [arg-type]
- Merge pull request 101 from pg-spot-ops/try-next-sku-on-create-
failure. [Kaarel Moppel]

Better HA - try next cheapest SKU when getting InsufficientInstanceCapacity on VM create
- Fix AZ info not being set correctly on price resolving. [Kaarel
Moppel]
- Don't need the resolved_instances manifest attribute after all.
[Kaarel Moppel]
- Re-try with another instance type when getting
InsufficientInstanceCapacity. [Kaarel Moppel]

Try up to 3 instance types during one main loop
- Tune the pricing table output a bit more + README update. [Kaarel
Moppel]
- Re-sort the price check output before display using cheapest strategy.
[Kaarel Moppel]
- Add justification to the price output table. [Kaarel Moppel]
- Use prettytable instead of tabulate. [Kaarel Moppel]

Add an additional sort if doing a multi-region price check
- WIP pretty printing. [Kaarel Moppel]
- Make multi-instance selection work. [Kaarel Moppel]
- Instance selection strategies now returning lists. [Kaarel Moppel]
- Add SSH brute force protection via fail2ban. [Kaarel Moppel]

New attribute os.ssh_brute_force_protection defaulting to True. A custom
Ansible implementation sadly as seems fail2ban doesn't work OOB on
Debian 12
- Enable pgBackRest encryption by default. [Kaarel Moppel]

With a dummy password though but better than none
- PgBackrest S3 backup - limit process-max to max 16 cores. [Kaarel
Moppel]

Doesn't seem to bring much after that
- Merge pull request 100 from pg-spot-ops/add-hba-lines-cli-flag.
[Kaarel Moppel]

New CLI flag --pg-hba-lines to override operator defaults
- New CLI flag --pg-hba-lines to override operator defaults. [Kaarel
Moppel]

Which might be too wide if SG not trimmed down.

https://github.com/pg-spot-ops/pg-spot-operator/issues/6
- Gran non-superuser the built-in replication role. [Kaarel Moppel]

To be able to use Logical Replication by default
- Better Ansible defaults and move some tuning settings to Ansible.
[Kaarel Moppel]
- Remove the Docker workflow entirely as on Docker Hub. [Kaarel Moppel]

Was commented out but that doens't play nice with GH Actions seems
- Don't validate CLI args when manifest specified explicitly. [Kaarel
Moppel]
- Merge pull request 99 from pg-spot-ops/add-auth-delay-to-pgconf-3.
[Kaarel Moppel]

Major ansible restructuring - group_vars + other
- Sync monitoring section Python defaults with Ansible. [Kaarel Moppel]

No monitoring by default. As get a bit faster to connect string
- Add back example Vault encrypted password to the example manifest.
[Kaarel Moppel]
- Add test for merge_user_and_tuned_non_conflicting_config_params.
[Kaarel Moppel]
- Remove vars/instance_manifest.yml as using group_vars. [Kaarel Moppel]
- Do more verbose logging also in Ansible if --verbose set. [Kaarel
Moppel]
- Fix Ansible failing on app user privs not having a DB yet. [Kaarel
Moppel]
- Show merged vars as 0 step for single_instance_setup.yml. [Kaarel
Moppel]

Add missing top sections + remove unneeded defaults from default_manifest.yml
- Space pad the instance manifest instead of plain YAML dump. [Kaarel
Moppel]

To preserve vault secrets
- Fix linter. [Kaarel Moppel]
- Run make fmt && make lint. [Evans Akai Bekoe]
- Rebase and fix types and references. [Evans Akai Bekoe]
- Fix misc issues. [Evans Akai Bekoe]
- Rebase on main branch. [Evans Akai Bekoe]
- Change preload-libraries to dict and dump instance-manifest correctly.
[Evans Akai Bekoe]
- Fix postgres_cluster_name scattering. [Evans Akai Bekoe]
- Unify default, instance and engine manifests. [Evans Akai Bekoe]
- Refactor roles/merge_vars into inventory group_vars. [Evans Akai
Bekoe]
- Rename merge_var.yml as _preprocess.yml. [Evans Akai Bekoe]
- Factor out and include pretasks. [Evans Akai Bekoe]
- Copy-paste config_lines to instance_manifest. [Evans Akai Bekoe]
- Add postgresql conf default for auth-delay. [Evans Akai Bekoe]

0.9.7

------------------
- Release: version 0.9.7 🚀 [Kaarel Moppel]
- Don't require --region to be set in explicit VM host mode. [Kaarel
Moppel]

when --vm-host set
- Fix latest 0.9.6 release for Python < 3.12. [Kaarel Moppel]

Seems e4391718de3cf9c27 hit some weird f-string handling difference not
picked up by linter, got:

File "/home/krl/.local/pipx/venvs/pg-spot-operator/lib/python3.10/site-packages/pg_spot_operator/cli.py", line 720
zip_url = f"https://github.com/pg-spot-ops/pg-spot-operator/archive/refs/tags/{data["tag_name"]}.zip"

0.9.6

------------------
- Release: version 0.9.6 🚀 [Kaarel Moppel]
- Require --storage-min set in non-price-check modes. [Kaarel Moppel]

When not using a fixed VM or teardown modes
- Improve PyPI Ansible setup files downloading - follow tags. [Kaarel
Moppel]

This allows to introduce breaking Ansible changes seamlessly.

WARNING - Old PyPI setups should clean ~/.pg-spot-operator/ansible
to benefit from this change
- Fix static VM Ansible inventory generation. [Kaarel Moppel]

When --vm-host / --vm-login-user set
- PyPI - a more meaningul description. [Kaarel Moppel]
- Correct 4e2122831 - don't require region for --check-price. [Kaarel
Moppel]
- Shorten main loop message a bit when all OK. [Kaarel Moppel]
- --check-manifest: require region or availability_zone set. [Kaarel
Moppel]

Also move check_manifest_and_exit before check_cli_args_valid(), as most
CLI flags are not effective in --check-manifest
- Ansible: don't add the dummy test table by default. [Kaarel Moppel]
- K8s / Helm sample deployments - add more main attributes. [Kaarel
Moppel]

For a more easier get-go

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.