Update archipelago: API, auth, container, parmanode, performance, security

- API handler, RPC, and server updates
- Auth and coding rules
- Container data manager, dev orchestrator, health monitor, podman client
- Parmanode script runner
- Performance resource manager
- Security container policies and secrets manager
- Add build scripts and documentation
This commit is contained in:
Dorian
2026-01-27 22:27:17 +00:00
parent 0d073fa89e
commit 1c024c5d64
5332 changed files with 8978 additions and 24160 deletions
@@ -1,5 +1,5 @@
use anyhow::{Context, Result};
use std::path::{Path, PathBuf};
use std::path::PathBuf;
use tokio::fs;
pub struct DevDataManager {
@@ -66,6 +66,7 @@ impl DevDataManager {
}
/// Get all app data directories
#[allow(dead_code)]
pub async fn list_app_data_dirs(&self) -> Result<Vec<String>> {
if !self.dev_data_dir.exists() {
return Ok(vec![]);
@@ -3,9 +3,7 @@ use archipelago_container::{
ContainerStatus, PortManager,
};
use anyhow::{Context, Result};
use std::path::PathBuf;
use std::sync::Arc;
use tokio::sync::RwLock;
use crate::config::{Config, ContainerRuntime, BitcoinSimulation};
use crate::container::data_manager::DevDataManager;
@@ -65,7 +63,7 @@ impl DevContainerOrchestrator {
pub async fn install_container(
&self,
manifest: &AppManifest,
manifest_path: &str,
_manifest_path: &str,
) -> Result<String> {
let app_id = &manifest.app.id;
let container_name = format!("archipelago-{}-dev", app_id);
@@ -251,11 +249,13 @@ impl DevContainerOrchestrator {
}
/// Get port mapping for an app
#[allow(dead_code)]
pub fn get_port_mapping(&self, app_id: &str) -> Option<Vec<u16>> {
self.port_manager.get_port_mapping(app_id)
}
/// Get Bitcoin simulator
#[allow(dead_code)]
pub fn bitcoin_simulator(&self) -> &Arc<BitcoinSimulator> {
&self.bitcoin_simulator
}
-1
View File
@@ -1,5 +1,4 @@
pub mod data_manager;
pub mod dev_orchestrator;
pub use data_manager::DevDataManager;
pub use dev_orchestrator::DevContainerOrchestrator;