Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit system user login #579

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Unreleased

* Added the Prometheus annotations to ``grandCentral`` to allow metrics scrapping on it.

* system user login restricted to 10.0.0.0/8


2.33.0 (2023-11-14)
-------------------
Expand Down
2 changes: 2 additions & 0 deletions crate/operator/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ def get_statefulset_crate_command(
"-Cauth.host_based.config.0.user": "crate",
"-Cauth.host_based.config.0.address": "_local_",
"-Cauth.host_based.config.0.method": "trust",
"-Cauth.host_based.config.1.user": "system",
"-Cauth.host_based.config.1.address": "10.0.0.0/8",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably make this configurable, since no guarantee that all k8s is using class A subnets? Also people might want to restrict it further, if they use a different subnet mask in their k8s.

Copy link
Contributor Author

@WalBeh WalBeh Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably make this configurable, since no guarantee that all k8s is using class A subnets? Also people might want to restrict it further, if they use a different subnet mask in their k8s.

configurable as in CRD?

spec.cluster.allowedSystemUserCIDR?

"-Cauth.host_based.config.99.method": "password",
"-Cpath.data": ",".join(
f"/data/data{i}" for i in range(node_spec["resources"]["disk"]["count"])
Expand Down
Loading