Paulo Motta created CASSSIDECAR-436:
---------------------------------------
Summary: Add PATCH /api/v1/cassandra/configuration endpoint
Key: CASSSIDECAR-436
URL: https://issues.apache.org/jira/browse/CASSSIDECAR-436
Project: Sidecar for Apache Cassandra
Issue Type: Task
Reporter: Paulo Motta
CEP-62 introduces a REST endpoint to update the configuration overlay for a
managed Cassandra instance. The handler validates the request structure and
delegates to the Configuration Manager for all business logic (schema
validation, concurrency control, overlay persistence, artifact
materialization). The request must include an \{{expectedHash}} for optimistic
concurrency control. Only \{{add}} and \{{remove}} operations are supported,
targeting top-level \{{cassandraYaml}} keys or \{{extraJvmOpts}} entries.
Multiple operations targeting the same field path in a single request are
rejected. Requires \{{CONFIGURATION:MODIFY}} permission.
Acceptance Criteria:
- \{{PATCH /api/v1/cassandra/configuration}} accepts JSON Patch operations and
delegates to the Configuration Manager.
- Handler validates request structure; Configuration Manager handles all
business logic.
- Only \{{add}} and \{{remove}} operations are supported; unsupported
operations return \{{400}}.
- Patches must target top-level \{{cassandraYaml}} keys only; nested partial
updates are rejected.
- Multiple operations targeting the same field path return \{{400}}.
- Returns the updated effective configuration with a new hash on success.
- Endpoint requires \{{CONFIGURATION:MODIFY}} permission.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]