feat: rename orbits; snapshots and downloads show the orbit's current name
PUT /api/v1/orbits/:id changes only the name (admin, validated, case-insensitively unique, audited). Snapshot metadata is immutable, so the list and the download file name look the orbit up by id and fall back to the written name only when the orbit is gone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -337,7 +337,8 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
|
|||||||
| "/api/v1/snapshots/:id/download"
|
| "/api/v1/snapshots/:id/download"
|
||||||
| "/api/v1/snapshots/:id/restore-targets"
|
| "/api/v1/snapshots/:id/restore-targets"
|
||||||
| "/api/v1/snapshots/:id/restore-jobs" => a.snapshot,
|
| "/api/v1/snapshots/:id/restore-jobs" => a.snapshot,
|
||||||
"/api/v1/orbits/:id/retention"
|
"/api/v1/orbits/:id"
|
||||||
|
| "/api/v1/orbits/:id/retention"
|
||||||
| "/api/v1/orbits/:id/run"
|
| "/api/v1/orbits/:id/run"
|
||||||
| "/api/v1/orbits/:id/outpost" => a.orbit,
|
| "/api/v1/orbits/:id/outpost" => a.orbit,
|
||||||
"/api/v1/capture-profiles/:id"
|
"/api/v1/capture-profiles/:id"
|
||||||
@@ -374,6 +375,7 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
|
|||||||
("POST", "/api/v1/orbits") => Some(
|
("POST", "/api/v1/orbits") => Some(
|
||||||
json!({"name": "created", "provider": "filesystem", "source": "filesystem", "provider_config": {"path": "/nonexistent"}}),
|
json!({"name": "created", "provider": "filesystem", "source": "filesystem", "provider_config": {"path": "/nonexistent"}}),
|
||||||
),
|
),
|
||||||
|
("PUT", "/api/v1/orbits/:id") => Some(json!({"name": "renamed-orbit"})),
|
||||||
("PUT", "/api/v1/restore-targets/:id") => Some(json!({"name": "renamed"})),
|
("PUT", "/api/v1/restore-targets/:id") => Some(json!({"name": "renamed"})),
|
||||||
("PUT", "/api/v1/orbits/:id/retention") => Some(json!({"decay_preset": "week-of-dailies"})),
|
("PUT", "/api/v1/orbits/:id/retention") => Some(json!({"decay_preset": "week-of-dailies"})),
|
||||||
("PUT", "/api/v1/orbits/:id/outpost") => Some(json!({"outpost_id": a.outpost})),
|
("PUT", "/api/v1/orbits/:id/outpost") => Some(json!({"outpost_id": a.outpost})),
|
||||||
|
|||||||
@@ -116,8 +116,14 @@ async fn download(
|
|||||||
.schedule
|
.schedule
|
||||||
.map(|s| s.timezone)
|
.map(|s| s.timezone)
|
||||||
});
|
});
|
||||||
|
let orbit_name = state
|
||||||
|
.db
|
||||||
|
.orbit_names()
|
||||||
|
.ok()
|
||||||
|
.and_then(|names| names.get(&snapshot.manifest.orbit_id).cloned())
|
||||||
|
.unwrap_or_else(|| snapshot.manifest.orbit_name.clone());
|
||||||
let file_name = exports::download_name(
|
let file_name = exports::download_name(
|
||||||
&snapshot.manifest.orbit_name,
|
&orbit_name,
|
||||||
snapshot.taken_at,
|
snapshot.taken_at,
|
||||||
zone.as_deref(),
|
zone.as_deref(),
|
||||||
snapshot
|
snapshot
|
||||||
|
|||||||
@@ -1846,3 +1846,144 @@ async fn a_target_name_is_validated_like_a_registration_and_only_administrators_
|
|||||||
StatusCode::NO_CONTENT
|
StatusCode::NO_CONTENT
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---- renaming orbits ----
|
||||||
|
|
||||||
|
impl Lab {
|
||||||
|
async fn download_disposition(&self, snapshot: Uuid) -> String {
|
||||||
|
let request = Request::builder()
|
||||||
|
.method("GET")
|
||||||
|
.uri(format!("/api/v1/snapshots/{snapshot}/download"))
|
||||||
|
.header("x-tessera-admin-token", ADMIN)
|
||||||
|
.extension(ConnectInfo("127.0.0.1:4000".parse::<SocketAddr>().unwrap()))
|
||||||
|
.body(Body::empty())
|
||||||
|
.unwrap();
|
||||||
|
let response = self.app.clone().oneshot(request).await.unwrap();
|
||||||
|
assert_eq!(response.status(), StatusCode::OK);
|
||||||
|
response.headers()[header::CONTENT_DISPOSITION]
|
||||||
|
.to_str()
|
||||||
|
.unwrap()
|
||||||
|
.to_string()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn renaming_an_orbit_renames_its_old_snapshots_everywhere_they_are_shown() {
|
||||||
|
let lab = fresh().await;
|
||||||
|
let admin = lab.admin();
|
||||||
|
let (qa, _) = lab.refresher("qa");
|
||||||
|
lab.start(&admin, "orbit-rename").await;
|
||||||
|
let snapshot = lab
|
||||||
|
.capture(&Lab::production_identity(), false)
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
assert!(lab
|
||||||
|
.download_disposition(snapshot)
|
||||||
|
.await
|
||||||
|
.contains("filename=\"prod-db_"));
|
||||||
|
|
||||||
|
let uri = format!("/api/v1/orbits/{}", lab.orbit);
|
||||||
|
assert_eq!(
|
||||||
|
lab.send(&admin, "PUT", &uri, Some(json!({"name": " broiler "})))
|
||||||
|
.await
|
||||||
|
.0,
|
||||||
|
StatusCode::NO_CONTENT
|
||||||
|
);
|
||||||
|
|
||||||
|
// the snapshot was written under the old name; it is shown under the current one
|
||||||
|
let (_, listed) = lab.send(&admin, "GET", "/api/v1/snapshots", None).await;
|
||||||
|
assert_eq!(listed[0]["orbit_name"], "broiler", "{listed}");
|
||||||
|
assert!(lab
|
||||||
|
.download_disposition(snapshot)
|
||||||
|
.await
|
||||||
|
.contains("filename=\"broiler_"));
|
||||||
|
let (_, overview) = lab.send(&admin, "GET", "/api/v1/relations", None).await;
|
||||||
|
assert!(overview["orbits"]
|
||||||
|
.as_array()
|
||||||
|
.unwrap()
|
||||||
|
.iter()
|
||||||
|
.any(|o| o["name"] == "broiler"));
|
||||||
|
let (_, mine) = lab
|
||||||
|
.send(&qa, "GET", "/api/v1/refresh-relations", None)
|
||||||
|
.await;
|
||||||
|
assert_eq!(mine[0]["source_name"], "broiler");
|
||||||
|
// nothing but the name moved: the relation, its confirmation text and the id are the same relation
|
||||||
|
assert_eq!(overview["relations"][0]["id"], lab.relation);
|
||||||
|
assert!(
|
||||||
|
lab.audit_log()
|
||||||
|
.iter()
|
||||||
|
.any(|(event, detail)| event == "orbit.renamed"
|
||||||
|
&& detail.contains(&lab.orbit.to_string()))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn an_orbit_name_is_validated_unique_and_only_administrators_change_it() {
|
||||||
|
let lab = fresh().await;
|
||||||
|
let admin = lab.admin();
|
||||||
|
let uri = format!("/api/v1/orbits/{}", lab.orbit);
|
||||||
|
for name in ["", " ", &"x".repeat(129), "bad\nname"] {
|
||||||
|
assert_eq!(
|
||||||
|
lab.send(&admin, "PUT", &uri, Some(json!({"name": name})))
|
||||||
|
.await
|
||||||
|
.0,
|
||||||
|
StatusCode::BAD_REQUEST,
|
||||||
|
"{name:?}"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
assert_eq!(
|
||||||
|
lab.send(
|
||||||
|
&admin,
|
||||||
|
"PUT",
|
||||||
|
&uri,
|
||||||
|
Some(json!({"name": "ok", "provider": "x"}))
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.0,
|
||||||
|
StatusCode::UNPROCESSABLE_ENTITY
|
||||||
|
);
|
||||||
|
let unknown = format!("/api/v1/orbits/{}", Uuid::new_v4());
|
||||||
|
assert_eq!(
|
||||||
|
lab.send(&admin, "PUT", &unknown, Some(json!({"name": "ok"})))
|
||||||
|
.await
|
||||||
|
.0,
|
||||||
|
StatusCode::NOT_FOUND
|
||||||
|
);
|
||||||
|
// another orbit already has that name (compared without regard to case); keeping your own name is fine
|
||||||
|
lab.state
|
||||||
|
.db
|
||||||
|
.upsert_orbit(&crate::db::OrbitRow {
|
||||||
|
id: Uuid::new_v4(),
|
||||||
|
name: "Other".into(),
|
||||||
|
provider: "wormhole".into(),
|
||||||
|
provider_config: "{}".into(),
|
||||||
|
schedule: None,
|
||||||
|
decay_preset: "week-of-dailies".into(),
|
||||||
|
retention: None,
|
||||||
|
dry_run: false,
|
||||||
|
last_status: "idle".into(),
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
lab.send(&admin, "PUT", &uri, Some(json!({"name": "other"})))
|
||||||
|
.await
|
||||||
|
.0,
|
||||||
|
StatusCode::CONFLICT
|
||||||
|
);
|
||||||
|
assert_eq!(
|
||||||
|
lab.send(&admin, "PUT", &uri, Some(json!({"name": "prod-db"})))
|
||||||
|
.await
|
||||||
|
.0,
|
||||||
|
StatusCode::NO_CONTENT
|
||||||
|
);
|
||||||
|
let (qa, _) = lab.refresher("qa");
|
||||||
|
let status = lab
|
||||||
|
.send(&qa, "PUT", &uri, Some(json!({"name": "mine"})))
|
||||||
|
.await
|
||||||
|
.0;
|
||||||
|
assert!(
|
||||||
|
status == StatusCode::FORBIDDEN || status == StatusCode::NOT_FOUND,
|
||||||
|
"{status}"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -373,6 +373,7 @@ pub fn router(state: HubState) -> Router {
|
|||||||
.route("/health", get(health))
|
.route("/health", get(health))
|
||||||
.route("/api/v1/snapshots", get(list_snapshots))
|
.route("/api/v1/snapshots", get(list_snapshots))
|
||||||
.route("/api/v1/orbits", get(list_orbits).post(create_orbit))
|
.route("/api/v1/orbits", get(list_orbits).post(create_orbit))
|
||||||
|
.route("/api/v1/orbits/:id", put(rename_orbit))
|
||||||
.route("/api/v1/orbits/:id/retention", put(update_orbit_retention))
|
.route("/api/v1/orbits/:id/retention", put(update_orbit_retention))
|
||||||
.route("/api/v1/orbits/:id/run", post(trigger_orbit))
|
.route("/api/v1/orbits/:id/run", post(trigger_orbit))
|
||||||
.route("/api/v1/orbits/:id/outpost", put(bind_outpost))
|
.route("/api/v1/orbits/:id/outpost", put(bind_outpost))
|
||||||
@@ -430,6 +431,10 @@ async fn list_snapshots(
|
|||||||
let snaps = vault
|
let snaps = vault
|
||||||
.list_snapshots()
|
.list_snapshots()
|
||||||
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
|
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
|
||||||
|
let names = state
|
||||||
|
.db
|
||||||
|
.orbit_names()
|
||||||
|
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
|
||||||
let out = snaps
|
let out = snaps
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter(|s| s.manifest.provider != "legacy-history")
|
.filter(|s| s.manifest.provider != "legacy-history")
|
||||||
@@ -439,7 +444,11 @@ async fn list_snapshots(
|
|||||||
orbit_id: s.manifest.orbit_id,
|
orbit_id: s.manifest.orbit_id,
|
||||||
taken_at: s.taken_at,
|
taken_at: s.taken_at,
|
||||||
capture: CaptureSnapshotSummary::from_manifest(&s.manifest),
|
capture: CaptureSnapshotSummary::from_manifest(&s.manifest),
|
||||||
orbit_name: s.manifest.orbit_name,
|
// the orbit's current name; the manifest keeps the one it was written under
|
||||||
|
orbit_name: names
|
||||||
|
.get(&s.manifest.orbit_id)
|
||||||
|
.cloned()
|
||||||
|
.unwrap_or(s.manifest.orbit_name),
|
||||||
size_bytes: s.size_bytes,
|
size_bytes: s.size_bytes,
|
||||||
stored_bytes: s.stored_bytes,
|
stored_bytes: s.stored_bytes,
|
||||||
new_data_chunks: s.new_data_chunks,
|
new_data_chunks: s.new_data_chunks,
|
||||||
@@ -609,6 +618,42 @@ fn retention_settings(
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(serde::Deserialize)]
|
||||||
|
#[serde(deny_unknown_fields)]
|
||||||
|
struct OrbitRename {
|
||||||
|
name: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Change an orbit's name and nothing else. Its snapshots are shown under the new name from now on.
|
||||||
|
async fn rename_orbit(
|
||||||
|
ConnectInfo(peer): ConnectInfo<SocketAddr>,
|
||||||
|
State(state): State<HubState>,
|
||||||
|
headers: HeaderMap,
|
||||||
|
Path(id): Path<Uuid>,
|
||||||
|
Json(req): Json<OrbitRename>,
|
||||||
|
) -> Result<StatusCode, StatusCode> {
|
||||||
|
let actor = admin_write(&state, peer, &headers)?;
|
||||||
|
let name = req.name.trim();
|
||||||
|
if name.is_empty() || name.len() > 128 || name.chars().any(char::is_control) {
|
||||||
|
return Err(StatusCode::BAD_REQUEST);
|
||||||
|
}
|
||||||
|
match state
|
||||||
|
.db
|
||||||
|
.rename_orbit(id, name)
|
||||||
|
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?
|
||||||
|
{
|
||||||
|
None => return Err(StatusCode::NOT_FOUND),
|
||||||
|
Some(false) => return Err(StatusCode::CONFLICT),
|
||||||
|
Some(true) => {}
|
||||||
|
}
|
||||||
|
state
|
||||||
|
.db
|
||||||
|
.audit("orbit.renamed", &format!("actor={actor} orbit={id}"))
|
||||||
|
.await
|
||||||
|
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
|
||||||
|
Ok(StatusCode::NO_CONTENT)
|
||||||
|
}
|
||||||
|
|
||||||
#[utoipa::path(put, path = "/api/v1/orbits/{id}/retention", params(("id" = Uuid, Path, description = "orbit id")), request_body = RetentionUpdate, responses((status = 204), (status = 400), (status = 404)))]
|
#[utoipa::path(put, path = "/api/v1/orbits/{id}/retention", params(("id" = Uuid, Path, description = "orbit id")), request_body = RetentionUpdate, responses((status = 204), (status = 400), (status = 404)))]
|
||||||
async fn update_orbit_retention(
|
async fn update_orbit_retention(
|
||||||
ConnectInfo(peer): ConnectInfo<SocketAddr>,
|
ConnectInfo(peer): ConnectInfo<SocketAddr>,
|
||||||
|
|||||||
@@ -147,6 +147,45 @@ impl Db {
|
|||||||
Ok(rows.collect::<rusqlite::Result<Vec<_>>>()?)
|
Ok(rows.collect::<rusqlite::Result<Vec<_>>>()?)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Current names of all orbits, by id. Snapshots keep the name they were written under; what people see
|
||||||
|
/// is the name the orbit has now.
|
||||||
|
pub fn orbit_names(&self) -> Result<std::collections::HashMap<Uuid, String>> {
|
||||||
|
let conn = self.conn.lock().unwrap();
|
||||||
|
let mut stmt = conn.prepare("SELECT id, name FROM orbits")?;
|
||||||
|
let rows = stmt.query_map([], |r| Ok((r.get::<_, String>(0)?, r.get::<_, String>(1)?)))?;
|
||||||
|
Ok(rows
|
||||||
|
.filter_map(Result::ok)
|
||||||
|
.filter_map(|(id, name)| Some((Uuid::parse_str(&id).ok()?, name)))
|
||||||
|
.collect())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Change an orbit's name. `None` for an unknown orbit, `Some(false)` when another orbit has the name
|
||||||
|
/// (compared without regard to case), `Some(true)` when renamed.
|
||||||
|
pub fn rename_orbit(&self, id: Uuid, name: &str) -> Result<Option<bool>> {
|
||||||
|
let conn = self.conn.lock().unwrap();
|
||||||
|
let exists: bool = conn.query_row(
|
||||||
|
"SELECT EXISTS(SELECT 1 FROM orbits WHERE id = ?1)",
|
||||||
|
params![id.to_string()],
|
||||||
|
|r| r.get(0),
|
||||||
|
)?;
|
||||||
|
if !exists {
|
||||||
|
return Ok(None);
|
||||||
|
}
|
||||||
|
let taken: bool = conn.query_row(
|
||||||
|
"SELECT EXISTS(SELECT 1 FROM orbits WHERE lower(name) = lower(?2) AND id <> ?1)",
|
||||||
|
params![id.to_string(), name],
|
||||||
|
|r| r.get(0),
|
||||||
|
)?;
|
||||||
|
if taken {
|
||||||
|
return Ok(Some(false));
|
||||||
|
}
|
||||||
|
conn.execute(
|
||||||
|
"UPDATE orbits SET name = ?2 WHERE id = ?1",
|
||||||
|
params![id.to_string(), name],
|
||||||
|
)?;
|
||||||
|
Ok(Some(true))
|
||||||
|
}
|
||||||
|
|
||||||
pub async fn upsert_orbit(&self, row: &OrbitRow) -> Result<()> {
|
pub async fn upsert_orbit(&self, row: &OrbitRow) -> Result<()> {
|
||||||
let conn = self.conn.lock().unwrap();
|
let conn = self.conn.lock().unwrap();
|
||||||
conn.execute(
|
conn.execute(
|
||||||
|
|||||||
@@ -164,7 +164,9 @@ On the target agent, add a `targets` map under the application UUID, keyed by th
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Use `{"reset":"recreate_database"}` to recreate the registered PostgreSQL database. It requires access to the `postgres` maintenance database and permission to drop and create the target database. Schema mode resets the named schema and applies the dump in a transaction. A restore target can be renamed later with `PUT /api/v1/restore-targets/{id}` and `{"name": "..."}` (administrators only, 1 to 128 characters, no control characters, audited as `restore_target.renamed`). Only the display name changes: the id, the identity, the Outpost, relations and earlier jobs stay as they are. Since several applications can each have a target called `dev`, the Relations console shows the application next to every target and in its pickers, and the Refresh screen shows the application on each card. Registering a target suggests `<application> · <database>` until a name is typed.
|
Use `{"reset":"recreate_database"}` to recreate the registered PostgreSQL database. It requires access to the `postgres` maintenance database and permission to drop and create the target database. Schema mode resets the named schema and applies the dump in a transaction. An orbit can be renamed with `PUT /api/v1/orbits/{id}` and `{"name": "..."}` (administrators only, 1 to 128 characters, no control characters, unique without regard to case, audited as `orbit.renamed`). Only the name changes. Snapshots keep the name they were written under inside their (immutable) metadata, so the snapshot list and the download file name look the orbit up by id and show its current name; a snapshot of an orbit that no longer exists keeps its original name.
|
||||||
|
|
||||||
|
A restore target can be renamed later with `PUT /api/v1/restore-targets/{id}` and `{"name": "..."}` (administrators only, 1 to 128 characters, no control characters, audited as `restore_target.renamed`). Only the display name changes: the id, the identity, the Outpost, relations and earlier jobs stay as they are. Since several applications can each have a target called `dev`, the Relations console shows the application next to every target and in its pickers, and the Refresh screen shows the application on each card. Registering a target suggests `<application> · <database>` until a name is typed.
|
||||||
|
|
||||||
Use `{"reset":"user_schemas"}` for a database whose tables live in several schemas: it drops every non-system schema (everything except `pg_*` and `information_schema`) and recreates `public`, in the same transaction as the restore, so a dump's `CREATE SCHEMA` for a schema that already exists on the target cannot collide. Schema mode only drops the one named schema, so a dump that also creates another schema that the target already has fails and rolls back; the target is left unchanged. Objects that live outside schemas (roles, publications, subscriptions) are not touched, and the connected role must own, or be allowed to drop, every schema it empties. Supply a local `post_restore_sql` file for target-specific SQL. PostgreSQL can read custom archives and plain or gzip-compressed SQL. The agent requires a psql client with restricted mode for restore. `omit_transaction_timeout` and `omit_pg_stat_statements` enable specific compatibility rules.
|
Use `{"reset":"user_schemas"}` for a database whose tables live in several schemas: it drops every non-system schema (everything except `pg_*` and `information_schema`) and recreates `public`, in the same transaction as the restore, so a dump's `CREATE SCHEMA` for a schema that already exists on the target cannot collide. Schema mode only drops the one named schema, so a dump that also creates another schema that the target already has fails and rolls back; the target is left unchanged. Objects that live outside schemas (roles, publications, subscriptions) are not touched, and the connected role must own, or be allowed to drop, every schema it empties. Supply a local `post_restore_sql` file for target-specific SQL. PostgreSQL can read custom archives and plain or gzip-compressed SQL. The agent requires a psql client with restricted mode for restore. `omit_transaction_timeout` and `omit_pg_stat_statements` enable specific compatibility rules.
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ admin/browser. Semua status/data job hanya di scope owner/admin yang berizin.
|
|||||||
| /api/v1/access/users/:id | PUT | human | access.manage | admin | tidak ada; menonaktifkan juga memutus semua sesi; tidak untuk diri sendiri/akun darurat |
|
| /api/v1/access/users/:id | PUT | human | access.manage | admin | tidak ada; menonaktifkan juga memutus semua sesi; tidak untuk diri sendiri/akun darurat |
|
||||||
| /api/v1/access/users/:id/revoke-sessions | POST | human | access.manage | admin | tidak ada; semua sesi user berakhir |
|
| /api/v1/access/users/:id/revoke-sessions | POST | human | access.manage | admin | tidak ada; semua sesi user berakhir |
|
||||||
| /api/v1/me/preferences | GET,PUT | human | session.self | current account | pilihan tampilan sendiri (look: window atau radar); no-store; CSRF pada PUT; token/dev tanpa akun: GET kosong, PUT 404 |
|
| /api/v1/me/preferences | GET,PUT | human | session.self | current account | pilihan tampilan sendiri (look: window atau radar); no-store; CSRF pada PUT; token/dev tanpa akun: GET kosong, PUT 404 |
|
||||||
|
| /api/v1/orbits/:id | PUT | human | orbit.manage | admin | hanya name (1-128, tanpa karakter kontrol, unik tanpa memedulikan huruf besar); id, provider, jadwal, retensi tidak berubah; snapshot lama tampil dengan nama terkini; diaudit `orbit.renamed` |
|
||||||
| /api/v1/orbits/:id/environment | PUT | human | orbit.manage | admin | tidak ada; menandai sumber (production/staging/development); diaudit |
|
| /api/v1/orbits/:id/environment | PUT | human | orbit.manage | admin | tidak ada; menandai sumber (production/staging/development); diaudit |
|
||||||
| /api/v1/restore-targets/:id | PUT | human | relation.manage | admin | hanya name (1-128, tanpa karakter kontrol); id, identity, outpost, relasi, dan job lama tidak berubah; diaudit `restore_target.renamed` |
|
| /api/v1/restore-targets/:id | PUT | human | relation.manage | admin | hanya name (1-128, tanpa karakter kontrol); id, identity, outpost, relasi, dan job lama tidak berubah; diaudit `restore_target.renamed` |
|
||||||
| /api/v1/restore-targets/:id/environment | PUT | human | relation.manage | admin | relasi aktif ke target yang diberi label production berakhir seketika; diaudit |
|
| /api/v1/restore-targets/:id/environment | PUT | human | relation.manage | admin | relasi aktif ke target yang diberi label production berakhir seketika; diaudit |
|
||||||
|
|||||||
Reference in New Issue
Block a user