Coursera 笔记

Module 05 · Cloud Security, Monitoring, Case Studies, Jobs云安全、监控、案例研究、职位

Cloud Monitoring and Benefits云监控与益处

Coursera ↗

Introduction 引言

Cloud computing has transformed the business landscape, offering scalability, flexibility, and cost-efficiency. However, it also introduces unique challenges in ensuring the security, performance, and availability of cloud-based services. Monitoring plays a critical role in proactively detecting and addressing potential issues. In this blog post, we will explore how monitoring can be achieved in the cloud using techniques such as alarms, logs, metrics, events, and service-based monitoring, including Infrastructure as Code (IaC). 
云计算已经改变了商业格局,提供了可扩展性、灵活性和成本效益。然而,它也带来了确保基于云的服务安全性、性能和可用性的独特挑战。监控在主动检测和解决潜在问题中发挥着关键作用。在这篇博客文章中,我们将探讨如何在云中使用诸如警报、日志、指标、事件和基于服务的监控等技术来实现监控,包括基础设施即代码(IaC)。

IaC has emerged as a powerful approach to automate the provisioning and configuration of cloud resources. With IaC, organizations define their infrastructure requirements through code, allowing consistent and repeatable deployments. Monitoring IaC deployments is crucial in ensuring a strong infrastructure that can detect any configuration drift. By incorporating IaC monitoring alongside other monitoring approaches, organizations can achieve greater control and visibility over their cloud infrastructure. 
基础设施即代码(IaC)已成为自动化云资源供应和配置的一种强大方法。通过 IaC,组织通过代码定义其基础设施需求,实现一致和可重复的部署。监控 IaC 部署对于确保强大的基础设施,能够检测任何配置漂移至关重要。通过将 IaC 监控与其他监控方法相结合,组织可以实现对云基础设施的更高控制和可见性。

Additionally, we will delve into the importance of tracking API calls for audit purposes. API calls are a gateway for interacting with various cloud services, making the calls crucial for security and compliance. Organizations can maintain an audit trail by tracking and storing API calls, ensuring transparency, accountability, and regulatory compliance. Furthermore, we will discuss attacks, vulnerabilities, risks, and mitigation measures associated with cloud monitoring to provide a comprehensive understanding of the potential risks and the steps needed to mitigate them effectively. 
此外,我们将深入研究跟踪 API 调用在审计目的中的重要性。API 调用是与其他云服务交互的门户,因此这些调用对于安全和合规至关重要。组织可以通过跟踪和存储 API 调用来维护审计记录,确保透明度、责任和法规遵从。此外,我们将讨论与云监控相关的攻击、漏洞、风险和缓解措施,以提供对潜在风险及其有效缓解步骤的全面理解。

Through this exploration, we aim to equip readers with the knowledge and insights to establish robust cloud monitoring practices, effectively track API calls, and mitigate potential risks. By embracing comprehensive monitoring strategies, including service-based and IaC monitoring, organizations can optimize their cloud infrastructure, enhance security, and deliver exceptional services in the dynamic and ever-evolving cloud environment.
通过这次探索,我们旨在为读者提供建立稳健的云监控实践、有效跟踪 API 调用和减轻潜在风险的知识和见解。通过采用全面的监控策略,包括基于服务的和 IaC 监控,组织可以优化其云基础设施,增强安全性,并在动态且不断演变的云环境中提供卓越的服务。

1. The Fundamentals of Cloud Monitoring 云计算监控基础

Monitoring in the cloud environment encompasses several vital components. Alarms are set to be proactive for specific events or thresholds, enabling organizations to respond promptly to critical situations. Logs are essential in collecting and analyzing data to gain insight into system behavior. Log management services provide efficient storage and retrieval capabilities, while log aggregation and analysis tools help detect anomalies and troubleshoot issues.
云环境监控包括几个关键组件。警报被设置为对特定事件或阈值进行主动响应,使组织能够迅速应对关键情况。日志对于收集和分析数据以深入了解系统行为至关重要。日志管理服务提供高效的存储和检索功能,而日志聚合和分析工具有助于检测异常和解决问题。

Metrics allow organizations to collect and visualize performance data through cloud-provided metrics. Establishing baseline metrics makes it easier to identify anomalies and make informed decisions. Monitoring dashboards offer real-time visibility into system health, enabling quick responses to potential issues.
指标允许组织通过云提供的指标收集和可视化性能数据。建立基线指标有助于识别异常并做出明智的决策。监控仪表板提供对系统健康状况的实时可见性,使能够迅速响应潜在问题。

Events capture and process real-time events within the cloud infrastructure. Event-driven architectures leverage them to trigger actions based on specific criteria. Organizations can efficiently mitigate potential threats by integrating event monitoring with incident response workflows.
事件捕获和处理云基础设施中的实时事件。事件驱动架构利用它们根据特定标准触发操作。组织可以通过将事件监控与事件响应工作流程集成,有效地减轻潜在威胁。

2. Service-Based Monitoring for Enhanced Cloud Management 2. 基于服务的云管理增强监控

Service-based monitoring focuses on specific cloud services to optimize performance and ensure efficient resource utilization. Load balancing monitoring involves tracking workload distribution and identifying potential bottlenecks. Alarms monitor load balancer health and performance issues, enabling organizations to respond promptly.
基于服务的监控专注于特定云服务以优化性能并确保资源利用效率。负载均衡监控涉及跟踪工作负载分布和识别潜在瓶颈。警报监控负载均衡器的健康状态和性能问题,使组织能够及时响应。

Content delivery monitoring involves monitoring content delivery networks (CDNs) for efficient content distribution. Performance, latency, and cache hit rates are proactively tracked to ensure an optimal user experience. In the event of content delivery issues, troubleshooting measures can rectify the situation promptly.
内容分发监控涉及对内容分发网络(CDN)进行高效内容分发监控。性能、延迟和缓存命中率被积极跟踪,以确保最佳用户体验。在内容分发出现问题时,可以通过故障排除措施及时解决问题。

Auto-scaling monitoring is essential for dynamically adjusting resource capacity in response to changing demands. By monitoring auto-scaling groups, organizations can track scaling events and evaluate the effectiveness of scaling policies. Coordination between monitoring and scaling activities ensures seamless scalability.
自动扩展监控对于根据需求变化动态调整资源容量至关重要。通过监控自动扩展组,组织可以跟踪扩展事件并评估扩展策略的有效性。监控和扩展活动之间的协调确保了无缝的可扩展性。

Infrastructure as Code (IaC) monitoring is critical for organizations utilizing automation and provisioning resources through code. Monitoring IaC deployments enables verification of infrastructure changes and detects any drift from the desired state. Configuration issues need to be identified and rectified promptly to maintain the integrity of the infrastructure.
基础设施即代码(IaC)监控对于利用代码进行自动化和资源配置的组织至关重要。监控 IaC 部署可以验证基础设施变更并检测任何偏离预期状态的情况。需要及时识别和纠正配置问题,以保持基础设施的完整性。

3. Tracking API Calls for Audit Purposes 3. 跟踪 API 调用以进行审计目的

API monitoring is essential for security and compliance in cloud environments. Organizations must recognize the significance of API calls and the risks associated with unauthorized or malicious API activity. By implementing API monitoring, organizations can configure audit trails and access controls to track API activities. Analyzing logs and detecting anomalies help identify suspicious API behavior, ensuring transparency and accountability in cloud service usage.
API 监控对于云环境中的安全和合规至关重要。组织必须认识到 API 调用的重要性以及未经授权或恶意 API 活动带来的风险。通过实施 API 监控,组织可以配置审计跟踪和访问控制以跟踪 API 活动。分析日志和检测异常有助于识别可疑的 API 行为,确保云服务使用的透明度和问责制。

The following are examples of cloud services that track API calls.
以下是一些跟踪 API 调用的云服务示例。

  • Amazon Web Services (AWS) CloudTrail: AWS CloudTrail is a service that enables organizations to monitor, log, and retain API activity across their AWS accounts. It records API calls made to AWS services and provides detailed information such as the caller's identity, the time of the API call, and the parameters used. By enabling CloudTrail, organizations can maintain an audit trail of API activities, ensuring transparency and accountability. The CloudTrail logs are analyzed to identify unauthorized or suspicious API behavior.
    亚马逊云服务(AWS)云审计:AWS CloudTrail 是一种服务,使组织能够监控、记录并保留其 AWS 账户中的 API 活动。它记录对 AWS 服务的 API 调用,并提供有关调用者身份、API 调用时间和使用的参数等详细信息。通过启用 CloudTrail,组织可以维护 API 活动的审计记录,确保透明度和问责制。分析 CloudTrail 日志以识别未经授权或可疑的 API 行为。
  • Google Cloud Audit Logging: Google Cloud Platform (GCP) provides Audit Logging, which captures API calls and system events across various GCP services. It allows organizations to track activities related to resource creation, deletion, modification, and access control changes. Audit Logging provides detailed logs that are monitored and analyzed to detect anomalous API behavior. By leveraging Audit Logging, organizations can maintain an audit trail for API activities and enforce compliance with security policies.
    谷歌云审计日志:谷歌云平台(GCP)提供审计日志功能,可捕获各种 GCP 服务中的 API 调用和系统事件。它允许组织跟踪与资源创建、删除、修改和访问控制变更相关的活动。审计日志提供详细的日志,用于监控和分析以检测异常 API 行为。通过利用审计日志,组织可以维护 API 活动的审计记录并强制执行安全策略的合规性。
  • Microsoft Azure Activity Logs: Azure Activity Logs record API calls and other administrative actions performed. These logs capture the operation type, resource actions, and the caller's identity. By enabling Azure Activity Logs, organizations can track API activities, detect unauthorized or malicious behavior, and maintain an audit trail for compliance.
    Microsoft Azure 活动日志:Azure 活动日志记录 API 调用和其他执行的管理操作。这些日志捕获操作类型、资源操作和调用者的身份。通过启用 Azure 活动日志,组织可以跟踪 API 活动、检测未授权或恶意行为,并维护审计跟踪以符合规定。
  • Salesforce Event Monitoring: Salesforce offers Event Monitoring, a service that logs API calls and user activities within the Salesforce platform. It provides detailed information about API operations, user logins, data exports, and other system events. Event Monitoring enables organizations to track API activities, monitor user behavior, and identify potential security risks or policy violations.
    Salesforce 事件监控:Salesforce 提供事件监控服务,该服务记录 Salesforce 平台内的 API 调用和用户活动。它提供了关于 API 操作、用户登录、数据导出和其他系统事件的详细信息。事件监控使组织能够跟踪 API 活动、监控用户行为,并识别潜在的安全风险或政策违规。

These examples highlight how specific cloud services can track API calls and maintain audit trails. Organizations can effectively monitor and analyze API activities by utilizing services like AWS CloudTrail, Google Cloud Audit Logging, Azure Activity Logs, and Salesforce Event Monitoring, ensuring transparency, accountability, and compliance with security policies and regulations.
这些示例突出了特定云服务如何跟踪 API 调用并维护审计跟踪。组织可以通过利用 AWS CloudTrail、Google Cloud Audit Logging、Azure 活动日志和 Salesforce 事件监控等服务,有效地监控和分析 API 活动,确保透明度、责任和符合安全政策和法规。

4. Likely Attacks, Vulnerabilities, Risks, and Mitigation Measures 4. 可能的攻击、漏洞、风险和缓解措施

Cloud environments are susceptible to various attacks and vulnerabilities. Distributed Denial of Service (DDoS) attacks can overwhelm cloud resources with excessive traffic, leading to disruptions. Data breaches risk unauthorized access to sensitive data stored in the cloud. Misconfigurations, such as insecure or improper setup of cloud services, can also expose vulnerabilities.
云环境容易受到各种攻击和漏洞的威胁。分布式拒绝服务(DDoS)攻击可以通过大量流量使云资源超负荷,导致中断。数据泄露可能导致对存储在云中的敏感数据的未授权访问。配置错误,如云服务的不安全或不正确设置,也可能暴露漏洞。

To mitigate these risks, organizations must implement strong authentication and access controls. Data encryption at rest and in transit is crucial for protecting sensitive information. Regular vulnerability assessments and penetration testing help identify potential weaknesses while monitoring network traffic and behavior analytics enable the detection of anomalies and early response to potential threats.
为了减轻这些风险,组织必须实施强大的身份验证和访问控制。静态和传输中的数据加密对于保护敏感信息至关重要。定期的漏洞评估和渗透测试有助于识别潜在弱点,同时监控网络流量和行为分析能够检测异常并及早应对潜在威胁。

Cloud environments face various attacks, vulnerabilities, and risks. Let's explore some examples:
云环境面临各种攻击、漏洞和风险。让我们探讨一些例子:

  • Distributed Denial of Service (DDoS) Attacks: DDoS attacks aim to overwhelm cloud resources by flooding them with excessive traffic, leading to service disruptions. Cloud service providers offer services that help mitigate DDoS attacks. For instance, AWS provides AWS Shield, a managed DDoS protection service. It automatically detects and mitigates DDoS attacks, ensuring the availability of cloud resources even during an attack. Similarly, Google Cloud offers the Cloud Armor service, which protects against DDoS attacks through global HTTP(S) load balancing and security system rules.
    分布式拒绝服务(DDoS)攻击:DDoS 攻击旨在通过大量流量淹没云资源,导致服务中断。云服务提供商提供帮助减轻 DDoS 攻击的服务。例如,AWS 提供 AWS Shield,这是一种托管的 DDoS 保护服务。它自动检测和减轻 DDoS 攻击,确保即使在攻击期间云资源也能可用。同样,Google Cloud 提供 Cloud Armor 服务,通过全球 HTTP(S)负载均衡和安全系统规则来防御 DDoS 攻击。
  • Data Breaches: Data breaches pose a significant risk in cloud environments, as they can result in unauthorized access to sensitive data stored in the cloud. Cloud service providers offer robust security measures to protect data. For example, Microsoft Azure provides Azure Key Vault, enabling organizations to store and manage cryptographic keys and secrets securely. AWS offers AWS Key Management Service (KMS), allowing organizations to encrypt data at rest and control access to encryption keys.
    数据泄露:数据泄露在云环境中构成重大风险,因为它们可能导致未经授权访问存储在云中的敏感数据。云服务提供商提供强大的安全措施来保护数据。例如,微软 Azure 提供 Azure 密钥保管库,使组织能够安全地存储和管理加密密钥和机密。AWS 提供 AWS 密钥管理服务(KMS),允许组织加密静态数据并控制加密密钥的访问。
  • Misconfigurations: Misconfigurations in cloud services can lead to security vulnerabilities and expose sensitive data to unauthorized access. For example, misconfigured access control policies or open storage buckets can provide unintended access to data. Cloud service providers often offer security configuration tools and services. AWS provides AWS Config, allowing organizations to continuously assess and audit resource configurations. Google Cloud delivers Cloud Security Command Center, a centralized security management and data risk assessment platform.
    配置错误:云服务中的配置错误可能导致安全漏洞,使敏感数据面临未经授权的访问。例如,配置错误的访问控制策略或开放的存储桶可能提供对数据的意外访问。云服务提供商通常提供安全配置工具和服务。AWS 提供 AWS Config,允许组织持续评估和审计资源配置。Google Cloud 提供云安全指挥中心,这是一个集中式安全管理与数据风险评估平台。
  • Insider Threats: Insider threats involve unauthorized or malicious actions by individuals with legitimate access to cloud resources. These individuals may intentionally abuse their privileges or inadvertently cause security incidents. Cloud service providers offer identity and access management services to mitigate insider threats. For instance, Azure Active Directory provides robust authentication and access controls to ensure only authorized users can access resources.
    内部威胁:内部威胁涉及具有合法访问云资源权限的个人进行的未授权或恶意行为。这些人可能故意滥用其权限,或者无意中引发安全事件。云服务提供商提供身份和访问管理服务以减轻内部威胁。例如,Azure Active Directory 提供强大的身份验证和访问控制,以确保只有授权用户可以访问资源。

Conclusion 结论

Monitoring is vital to cloud management, ensuring cloud-based services' security, performance, and availability. Organizations can proactively address potential issues and optimize their cloud infrastructure by utilizing techniques such as alarms, logs, metrics, events, service-based monitoring, and tracking API calls for audit purposes. Understanding attacks, vulnerabilities, risks, and mitigation measures help organizations fortify their cloud environment. Robust monitoring practices and thorough audit trail tracking are essential for maintaining a secure and efficient cloud ecosystem. By embracing comprehensive cloud monitoring strategies, organizations can optimize their cloud infrastructure and deliver exceptional services while mitigating potential risks.
监控对于云管理至关重要,确保基于云的服务安全、性能和可用性。组织可以通过利用警报、日志、指标、事件、基于服务的监控和跟踪 API 调用以审计目的等技术,积极应对潜在问题并优化其云基础设施。了解攻击、漏洞、风险和缓解措施有助于组织加强其云环境。强大的监控实践和详尽的审计跟踪对于维护安全高效的云生态系统至关重要。通过采用全面的云监控策略,组织可以优化其云基础设施,提供卓越的服务,同时减轻潜在风险。