Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion src/aws_clients/s3_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ fn build_custom_http_client(
return None;
}

// that grcov cannot attribute to source lines.
// Build the TLS context once (custom CA certs, if any). `proxy_config` lives
// on the low-level `ConnectorBuilder`, not the high-level `Builder`, so we
// assemble the connector per-invocation inside `build_with_connector_fn`
Expand Down
2 changes: 0 additions & 2 deletions src/aws_clients/wire_log.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Amazon S3 HTTP wire logging (`:log_aws_wire:`).
//!
//! When the `log_aws_wire` config setting is enabled, [`WireLogInterceptor`] is
Expand Down
2 changes: 0 additions & 2 deletions src/command_poller/host_command_poller.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Host command polling loop.
//!
//! Polls the `CodeDeploy` service for host commands and submits them
Expand Down
2 changes: 0 additions & 2 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Agent configuration — YAML-based config file parsing and defaults.
//!
//! Loads YAML from `/etc/codedeploy-agent/conf/codedeployagent.yml` and merges
Expand Down
2 changes: 0 additions & 2 deletions src/host_command/bundle_downloader/local_directory.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Local directory downloader — recursive copy.
//!
//! Copies instead of symlinking to preserve revision history.
Expand Down
2 changes: 0 additions & 2 deletions src/host_command/bundle_unpacker.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Bundle archive unpacking.
//!
//! Extracts tar/tgz/zip archives and strips a leading directory if the archive
Expand Down
2 changes: 0 additions & 2 deletions src/host_command/commands/download_bundle.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! `DownloadBundle` command.
//!
//! Cleans up old archives, downloads the bundle from the appropriate source
Expand Down
2 changes: 0 additions & 2 deletions src/host_command/commands/hook.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Hook command — runs lifecycle event scripts.
//!
//! Maps command names to lists of lifecycle event names, then creates and
Expand Down
2 changes: 0 additions & 2 deletions src/installer/commands/change_acl_command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! `setfacl` command — sets POSIX ACLs on installed files.
use crate::application_specification::{Acl, AclEntry};
use crate::installer::{InstallerError, Result};
Expand Down
2 changes: 0 additions & 2 deletions src/installer/commands/change_context_command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! `semanage fcontext` command — sets `SELinux` file context.
use crate::application_specification::SeLinuxContext;
use crate::installer::{InstallerError, Result};
Expand Down
2 changes: 0 additions & 2 deletions src/installer/commands/change_mode_command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! `chmod` command — sets file permissions.
use crate::installer::{InstallerError, Result};
use serde_json::{Value, json};
Expand Down
2 changes: 0 additions & 2 deletions src/installer/commands/change_owner_command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! `chown` command — sets file ownership.
use crate::installer::Result;
use serde_json::{Value, json};
Expand Down
4 changes: 1 addition & 3 deletions src/installer/core.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk high
//!
//! Installer core — executes install commands and manages cleanup files.
#[cfg(unix)]
use super::commands::RemoveContextCommand;
Expand Down Expand Up @@ -98,7 +96,7 @@ impl Installer {
self
}

/// @risk high — writes files to customer filesystem, wrong behavior corrupts deployments
/// Writes files to the customer filesystem; wrong behavior corrupts deployments.
///
/// # Errors
/// Returns an error if installation fails.
Expand Down
2 changes: 0 additions & 2 deletions src/installer/safe_fs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk high
//!
//! Symlink-safe destination guards for permission commands.
//!
//! The install instruction list runs every `CopyCommand` first and only then
Expand Down
2 changes: 0 additions & 2 deletions src/lifecycle_event/script.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Script execution with real-time stream logging.
//!
//! [`Script::execute`] is the sync entry point — it creates a tokio runtime internally
Expand Down
2 changes: 0 additions & 2 deletions src/logging/agent_logger.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk low
//!
//! Agent log configuration — file rotation and format setup.

use std::fs::{self, File, OpenOptions};
Expand Down
2 changes: 0 additions & 2 deletions src/logging/deployment_logger.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk low
//!
//! Per-deployment log file writer.
use std::fs::{self, File, OpenOptions};
use std::io::{self, Write};
Expand Down
2 changes: 0 additions & 2 deletions src/paths.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk low
//!
//! Platform-appropriate default paths for the `CodeDeploy` agent.
//!
//! Each function returns the canonical default path for the current platform,
Expand Down
2 changes: 0 additions & 2 deletions src/system/file_ops.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Platform-specific file operations with retry logic
//!
//! This module provides a trait-based abstraction for file operations that need
Expand Down
2 changes: 0 additions & 2 deletions src/system/linux_ops.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk medium
//!
//! Linux-specific system operations — `setfacl`.
use std::io;
use std::path::Path;
Expand Down
2 changes: 0 additions & 2 deletions src/system/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk low
//!
//! System abstraction layer — file ops, process ops, `SELinux`, env vars.
pub mod env_ops;
pub mod file_ops;
Expand Down
2 changes: 0 additions & 2 deletions src/system/version_file.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! @risk low
//!
//! Agent version-tracking file (`.version`).
//!
//! The `.version` file is part of the agent's documented install layout: it
Expand Down
Loading