Critical
- Owner key is sha256("<region>:<aws:userid>") (12 hex): IAM role names are
account-global and environments regional, so the same user and env name
in two regions no longer collide. Every caller, the onboarding module's
owner_key validation, docs and a two-region test.
Important
- A failed onboarding is Incomplete, not Joined: Joined needs the task role
and, where the bucket is readable, the state's new onboarding_complete
output (depends_on every resource); a failed or errored local run or a
stale lock is Incomplete. Join stays as the retry; Follow, Unlock (own
key only, stale, conditional delete) and Push saved state work on the
caller's own onboarding.
- errored.tfstate: the runner logs an Error line naming it, follow's
summary says so, materialize refuses while it exists, and the new
push_aws_saved_state command runs `tofu state push errored.tfstate`
through the same runner (file set aside once pushed); UI on the row.
- Bundle README: the bucket is created with the component tag in
--create-bucket-configuration (the policy's RequestTag condition), plus
the TLS-only bucket policy; the boundary bundle names an account admin
WITHOUT the environment-admin files.
- Destroy-incomplete refuses while any users/<env>/ state remains.
- existing network: data.aws_subnet lookups and a precondition (same VPC,
different AZs) on the task security group.
Minor
- The TLS statement is added to an existing bucket policy, never put over it.
- Deploy progress is emitted to the main window only.
- materialize checks and writes under start.lock.
- UI: managed-elsewhere label and explanation, Incomplete explained,
Repair/Destroy disabled under a held lock ("Unlock first").
- Cargo.toml libc comment; README: Cancel unavailable on Windows, session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
113 lines
5.5 KiB
TOML
113 lines
5.5 KiB
TOML
[package]
|
|
name = "triple-c"
|
|
version = "0.4.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "triple_c_lib"
|
|
crate-type = ["lib", "cdylib", "staticlib"]
|
|
|
|
[[bin]]
|
|
name = "triple-c"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["image-png", "image-ico"] }
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-opener = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
bollard = "0.18"
|
|
keyring = { version = "3", features = ["apple-native", "windows-native", "linux-native"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
futures-util = "0.3"
|
|
bytes = "1"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
dirs = "6"
|
|
log = "0.4"
|
|
fern = { version = "0.7", features = ["date-based"] }
|
|
tar = "0.4"
|
|
# Unpacks the pinned OpenTofu release archive (aws/tofu.rs); every platform's
|
|
# archive is a .tar.gz. The version already in the tree.
|
|
flate2 = "1"
|
|
include_dir = "0.7"
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "multipart"] }
|
|
iana-time-zone = "0.1"
|
|
sha2 = "0.10"
|
|
axum = { version = "0.8", features = ["ws"] }
|
|
# Client side of triple-c-agent's two WebSocket endpoints (host/agent.rs). The
|
|
# same version axum's `ws` already pulls in; plain ws:// only (the transport is
|
|
# loopback or an SSM port-forward), so no TLS features.
|
|
tokio-tungstenite = { version = "0.28", default-features = false, features = ["connect"] }
|
|
# `PollSender`: the agent attach's stdin `AsyncWrite` over a bounded channel.
|
|
# Already in the tree through tokio's ecosystem.
|
|
tokio-util = "0.7"
|
|
tower-http = { version = "0.6", features = ["cors"] }
|
|
base64 = "0.22"
|
|
rand = "0.9"
|
|
local-ip-address = "0.6"
|
|
argon2 = "0.5"
|
|
aes-gcm = "0.10"
|
|
zeroize = "1"
|
|
# WHATWG URL parsing for `url_open`'s re-validation of URLs arriving from the
|
|
# container. Already in the tree transitively (reqwest), and the point of
|
|
# using it rather than hand-rolling is parity with the frontend's `new URL()`.
|
|
url = "2"
|
|
similar = "2"
|
|
# Marketplace repos are fetched on the host into a bare cache (spec §3).
|
|
# Blocking client + rustls: no git binary or OpenSSL needed on the host.
|
|
gix = { version = "0.88", default-features = false, features = ["blocking-network-client", "blocking-http-transport-reqwest-rust-tls", "credentials", "sha1"] }
|
|
# AWS host (docs/superpowers/specs/2026-11-13-aws-ecs-host-design.md). The
|
|
# service crates' default `rustls` feature is the *legacy* hyper 0.14 /
|
|
# rustls 0.21 client, a second TLS stack next to the one reqwest already
|
|
# brings; `default-https-client` is the current one, so defaults are off.
|
|
aws-config = { version = "1.13.2", default-features = false, features = ["default-https-client", "rt-tokio", "credentials-process", "sso", "behavior-version-latest"] }
|
|
aws-sdk-ssm = { version = "1.137.0", default-features = false, features = ["default-https-client", "rt-tokio", "behavior-version-latest"] }
|
|
aws-sdk-ecs = { version = "1.159.0", default-features = false, features = ["default-https-client", "rt-tokio", "behavior-version-latest"] }
|
|
aws-sdk-sts = { version = "1.126.0", default-features = false, features = ["default-https-client", "rt-tokio", "behavior-version-latest"] }
|
|
aws-sdk-iam = { version = "1.136.0", default-features = false, features = ["default-https-client", "rt-tokio", "behavior-version-latest"] }
|
|
aws-sdk-secretsmanager = { version = "1.128.0", default-features = false, features = ["default-https-client", "rt-tokio", "behavior-version-latest"] }
|
|
# Named by src/aws/connection.rs: the credentials-provider trait (its profile
|
|
# wrapper) and the profile-file set (aws-config's alias for it is deprecated).
|
|
# Both are the versions aws-config already resolves.
|
|
aws-credential-types = { version = "1.3.1", default-features = false }
|
|
aws-runtime = { version = "1.10.4", default-features = false }
|
|
# The default sleep and time source for the hand-built SdkConfig (no env/profile
|
|
# loading); the version and feature already in the tree.
|
|
aws-smithy-async = { version = "1.3.1", default-features = false, features = ["rt-tokio"] }
|
|
aws-sdk-s3 = { version = "1.159.0", default-features = false, features = ["default-https-client", "rt-tokio", "behavior-version-latest"] }
|
|
|
|
# aws/tofu.rs: `setsid` puts the detached OpenTofu runner in its own session,
|
|
# and Cancel sends SIGINT to the runner process alone (never a group), which
|
|
# forwards it to `tofu`. Liveness is the runner's `apply.lock`, not a PID.
|
|
# Already in the tree through tokio and friends.
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
# Linux only: WebKitGTK refuses getUserMedia until the embedder enables media
|
|
# streams and answers the permission request (see src/linux_media.rs). Same
|
|
# version tauri/wry already resolve, so this adds no second copy.
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
webkit2gtk = "2.0.2"
|
|
|
|
[dev-dependencies]
|
|
# `test-util` (not part of tokio's `full`) lets the auto-start retry tests run
|
|
# their backoff schedule under a paused clock instead of in real seconds.
|
|
tokio = { version = "1", features = ["full", "test-util"] }
|
|
tempfile = "3"
|
|
# Only `aws::live_tests` (ignored): it creates a throwaway environment key to
|
|
# check that Secrets Manager and the permissions boundary see its tags.
|
|
aws-sdk-kms = { version = "1.131.0", default-features = false, features = ["default-https-client", "rt-tokio", "behavior-version-latest"] }
|
|
# Only `aws::tofu_modules` tests: they parse the shipped OpenTofu modules.
|
|
hcl-rs = "0.20"
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
# build.rs reads capabilities/*.json to cross-check them against generate_handler!.
|
|
serde_json = "1"
|
|
|
|
[features]
|
|
default = ["custom-protocol"]
|
|
custom-protocol = ["tauri/custom-protocol"]
|