General Introduction of Web Service Security

云认知重置:从IDC思维到云原生落地的三大断层 云计算本质不是虚拟化的延伸,而是一种以API为界面、以弹性为默认、以业务试错成本压缩为核心价值的新型IT交付范式。其底层原理在于资源池化、按需计量与故障域抽象,技术价值体现在将系统韧性、部署效率和成本响应速度提升至小时级甚至秒级。典型应用场景包括电商大促弹性扩容、政务数据分级上云、智能工厂边缘推理等。本文聚焦真实业务中普遍存在的认知断层——误将云当作托管IDC、混淆混合云与分层架构、把容器化等同于云原生,结合WordPress高可用部署、VPC安全设计与RDS连接池调优等实操案例,揭示云服务API、控制台与 阅读详情

 Background :

When i read book "Prentice.Hall.PTR.Developing.Enterprise.Web.Services.An.Architects.Guide.eBook", i wrote this article for recording the keypoints.

Part 1 Web Risks

Risks in Information Transaction

¨         Identity risks

¨         Information theft

¨         Information interception

¨         Negligence

 

Security Is An End-to-End Process

Risks come out not only during data transport between one computer and another computer, but also after transport. Mainly present on Data Handling and Forwarding, Data Storage and Errors in Identity.

 

Solution Strategy

Issue - Data Handling and Forwarding

There are many means to address these types of data handling and forwarding problems. The first is simply to re-encode and encrypt the data before the server forwards it. Another solution is to encrypt the data so that it can be partially decrypted by the receiving server. The partial decrypt allows only routing information to be gathered so the information can be forwarded to the appropriate representative as encrypted data.

 

Part 2 Web Service Security Issues

As more and more Web applications and Web sites are simply repackaged, wrapped, and exposed as Web services, these security risks and issues will pervade Web services environments as well.

 

Data Protection and Encryption(数据保护和加密)

Data protection refers to the management of transmitted messages so that the contents of each message arrives at its destination intact, unaltered, and not viewed by anyone along the way.

¨        Data integrity: assures the recipient that the data was neither damaged nor intercepted by a third-party and altered while in transit

¨        Data privacy: assures the recipient that the contents of the data have not been viewed by any third-party

 

Point-to-point data protection solution - Secure Sockets Layer (SSL) protocol

¨         Creat a secure tunnel based on public-key encryption techniques

¨         Supports authentication of the origination computer to the destination computer

¨         Supports authentication of the destination computer(optionally)

 

However, SSL can’t be a solution for End-to-end Process for reasons:

¨         It does not provide end-to-end data protection between multiple parties

¨         It does not support selectively encrypting segments of a message

 

Protect Data Privacy: Authentication and Authorization(保护数据隐私:认证和授权)

Authentication refers to verifying that the identity of an entity is in fact that which it claims to be.The entity trying to have its identity authenticated is known as the principal(委托人). The evidence used to prove the principal's identity is known as the credentials(资格证书)

 

After a principal's identity has been authenticated, authorization mechanisms are used to determine what the user (or application) will be allowed to access.

 

Classification of technologies and approaches(implement authentication and authorization for Web services)

¨         System-level approaches

Usually, the operating system or the Web server handles authentication and authorization prior to forwarding the SOAP request to the Web service.

Common system-level approaches to authentication include basic passwords, encrypted passwords, and digital certificates.

¨         Application-level approaches

Application-level approaches require custom development, and usually have to be modified with changes to the authentication mechanism. They can pass credentials as part of the SOAP message.

In this case, the Web service must parse the credentials as well as implement authentication and authorization mechanisms itself. The credentials can be transmitted as part of the SOAP header or the SOAP body.

 

This example depicts a SOAP envelope that uses the optional SOAP header specification to pass username and password credentials. Before the SOAP body, the SOAP header is defined that includes UserName and Password elements. SOAP messages that either lack a header or present incorrect credentials will not be allowed to invoke the GetRealTimeQuote method.

<soap:Envelope
 
     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 
  <soap:Header>
 
    <AuthHeader xmlns="http://tempuri.org/">
 
      <UserName>MyUserName</UserName>
 
      <Password>MyPassword</Password>
 
    </AuthHeader>
 
  </soap:Header>
 
  <soap:Body>
 
    <GetRealTimeQuote xmlns="http://tempuri.org/">
 
      <symbol>HPQ</symbol>
 
    </GetRealTimeQuote>
 
  </soap:Body>
 
</soap:Envelope>

 

¨         Third-party approaches

The third-party single sign-on service manages and maps the single credential held by service requesters to each of the service providers. The complexities of maintaining, managing, and revoking authentication credentials and authorization access list are handle by the third-party service provider.

Two examples of single sign-on services are Microsoft Passport and the Liberty Alliance.

 

Non-Repudiation and Signatures(认可和签名)

Alongside privacy are the following related and equally important issues:

¨         Data authenticity(数据真实性): This verifies the identity of the sender of a message. The concept of data authenticity answers the question: Who sent this message?

¨         Data integrity(数据完整性): This verifies that the message data that was received was in fact the same data that was sent by the sender, and the information was not modified in any way in transit. The concept of data integrity answers the question: Is this data really what the sender sent?

¨         Non-repudiation(认可): It provides a means to prove that a sender sent a particular message, and does not allow the sender to later disavow having sent it. The concept of non-repudiation answers the question: Can the sender deny having sent this message?

These issues are addressed by the concept of Digital signatures(数字签名)

Digital signatures allow the receiver of a document to verify that the source from which it came has created (or viewed) and validated the contents of the document. It also supports the ethic of accountability in that the identity of the person who validated the document can be proved and the person can be held accountable for their validation.

Digital signatures technology is based on Public Key Infrastructure (PKI) technologies. The basic process is as follows:

¨         The document that is to be signed is transformed using the private key of the sender.

¨         When the document is received, the receiver transforms the received document using the public key of the sender. Since only a transformation using the public key of the sender can undo the initial transformation using the private key of the sender, the receiver can be certain that the owner of the private key has signed the document

XML Signatures technology

<Reference> element specifies the URI for the actual resource

---<DigestMethod> element that specifies the algorithm used to calculate the digest

------<DigestValue> element that contains the actual calculated digest value

 

A example:

What Receiver should do?

On receiving the signed document, the receiver must simply follow these steps to verify the signature as well as the integrity of the received data:

1.       Calculate the digest of the <SignedInfo> element using the digest algorithm specified in the <SignatureMethod> element.

2.       Use the public key of the sender (from the <KeyInfo> element or from external sources) to verify the signature of the digest.

3.       Calculate the digests of each of the resources (within each <Reference> element) using the algorithm specified in the <DigestMethod> element. Compare the calculated values with those specified within the <DigestValue> of each <Reference> element to verify the integrity of the data.

Part 3 Types of Security Attacks and Threats

l         Malicious Attacks(恶意攻击)

Web services expose critical application interfaces and operations and make them accessible through HTTP traffic. Each of these hundreds and thousands of operations represents a potential security problem.

l         Denial of Service Attacks(DoS)(拒绝服务)

A denial-of-service (DoS) attack is an attack in which a user is deprived of a service that it normally expects to have available to it.

Cases:

1 The most common type of DoS attack is a buffer overflow attack.(超负荷攻击)

2 Sending extremely large XML documents to a Web service can also be considered a type of DoS attack.

3 Replay attack with a valid message is repeatedly sent to a service

In these cases, it is critical to authenticate the requester(验证请求的真实性) before starting to process the request.

l         Dictionary Attacks(词典攻击)

A dictionary attack is an action in which a client takes advantage of weak passwords or other authentication mechanisms to gain access to a service

l         Internal Threats(内在威胁)

Attacks from inside

   

Part 4 Web Services Security Roadmap

 

 

This roadmap is based on a document entitled "Security in a Web Services World: A Proposed Architecture and Roadmap" that was jointly submitted by IBM and Microsoft.

 

·         WS-Security. This builds on the SOAP specification and specifies how to sign and secure SOAP messages.

·         WS-Policy. This specifies a generic format through which to describe the security capabilities and requirements for SOAP message senders and receivers. This group includes not only consumers and endpoints, but also intermediaries.

·         WS-Trust. This specifies and describes the model for establishing and coordinating trust relationships between multiple parties.

·         WS-Privacy. This builds on WS-Security, WS-Policy, and WS-Trust to specify a model by which organizations using Web services can indicate preferences as well as conformance to particular privacy policies.

·         WS-SecureConversation. This builds on WS-Security and WS-Trust to specify how Web services can mutually manage and authenticate security contexts. It includes describing how Web services can authenticate messages from service requesters as well as how service requesters can authenticate Web services.

·         WS-Federation. This builds on WS-Security, WS-Policy, WS-Trust, and WS-SecureConversation to specify how to broker and manage heterogeneous, federated trust contexts.

·         WS-Authorization. This specifies how access policies for Web services are specified and managed using a flexible and extensible authorization format and language.

 

 

 

 

 

KVM虚拟化底层原理与实战排错:从CPU指令到云托管地基 虚拟化是现代云托管的技术基石,其核心在于硬件辅助虚拟化(如Intel VT-x/AMD-V)与内核级Hypervisor(如KVM)的协同。KVM并非独立操作系统,而是将Linux内核转化为轻量级Type-2 Hypervisor,依赖CPU微码、BIOS固件开关、内核模块加载、IOMMU分组及用户空间权限五层校验才能启用。理解这些机制,是解决‘virtualization support not detected’、Docker Desktop启动失败、KVM显卡直通异常等高频问题的关键。它支撑着容器运行 阅读详情

相关推荐

MATLAB机械臂建模实战:标准D-H法与改进D-H法到底选哪个?(附代码对比)

本文深入解析MATLAB中机械臂建模的标准D-H法与改进D-H法的本质区别,提供详细的代码对比和可视化结果。通过实际案例,帮助读者根据应用场景选择合适方法,并避免常见建模陷阱。特别关注Link函数和SerialLink工具的使用技巧,提升机械臂建模效率。

grape的博客 1121

WebService报错:GENERAL_ERROR Error duing proxy processing (PART UNKNOWN (NULL))的解决方案

JAVA发布服务目前常用的有二种方式

matinal 當冬夜漸暖 。公众号:matinal 743

单细胞分析实战:当Seurat的SCTransform遇上Harmony,我的整合流程优化笔记

本文详细介绍了单细胞转录组数据分析中SCTransform与Harmony整合流程的优化策略。通过实战案例展示如何调整SCTransform参数、优化Harmony整合效果,并解决常见问题,帮助研究者获得更可靠的生物学发现。特别适合需要处理批次效应的单细胞数据分析人员。

weixin_42552716的博客 361

Oracle ESB 错误代码

表 A-1 AquaLogic Service Bus 错误代码 子系统 错误代码 错误消息 传输运行时错误 (BEA-380000 至 BEA-38099) BEA-380000 常规传输错误 XML 详细信息: 收到一个错误响应 (出现在发布操作中时) 消息流运行时错误代码 (382000...382499) BEA-382000 常规运行时错误 BEA-...

狂飞的博客 2012

STM32F030C8烧录实战:用J-Link Commander实现一键批量烧写(附完整脚本)

本文详细介绍了如何使用J-Link Commander工具链实现STM32F030C8的一键批量烧录,包括环境配置、批处理脚本设计、命令脚本解析以及生产环境实战技巧。通过自动化烧录流程,显著提升效率并降低人为错误,特别适合量产和频繁迭代的开发场景。

weixin_30505225的博客 462

questasim的傻瓜式安装与仿真教程

一、安装 1、下载软件 链接:https://pan.baidu.com/s/1S05AnO_w-wy6RsAj_kdUXg 提取码:p2nt 2、根据电脑类型是32位还是64位,解压不同安装包。 解压得: 2、运行.exe文件,出现: 问题及解决办法: 这是杀毒软件造成的,因此在安装过程中关闭杀毒软件即可。关闭之后,再次运行.exe文件。 3、点击下一步,进入选择安装位置界面,如下:选择好安装位置后点击下一步。 4、点击同意 5、接下来等待安装结束即可,在安装过程中,会跳出来弹框,询问是否要添

树下等苹果的博客 3万+

关于webservice的几个问题

CXF框架实现webservice是在设置身份验证时, 1.首先在server端的密码设置验证的配置 public class WsAuthHandler implements CallbackHandler {          public void handle(Callback[] callbacks) throws IOException,               Unsu

qq_36797914的博客 883

结构力学仿真软件:STAAD.Pro:结构抗震设计与STAAD.Pro应用_2024-08-10_11-49-29.Tex

STAAD.Pro是一款广泛应用于结构工程领域的仿真软件,由Bentley Systems开发。它能够进行结构分析和设计,支持多种结构类型,包括桥梁、建筑物、塔架等。STAAD.Pro提供了强大的建模工具,用户可以轻松创建复杂的结构模型,并进行静态和动态分析。软件还支持多种载荷组合,包括地震载荷,以及提供详细的报告和图纸输出,便于工程师进行设计和审查。STAAD.Pro是一款广泛应用于结构工程设计的软件,其界面直观,功能强大,能够进行结构分析与设计。菜单栏。

977

OSB-380000:调用服务提供方服务错误 原因

OSB-380000:调用服务提供方服务错误:[OSB-381304]Exception in HttpOutboundMessageContext.RetrieveHttpResponseWork.run: java.io.IOException: SocketMuxer detected socket closure while waiting for a response java.io....

KiGang的博客 9113

MinerU PDF解析工具:从安装配置到本地部署与API调用的全流程指南

MinerU是由上海人工智能实验室开源的高质量PDF解析工具,可将包含图片、公式、表格的复杂PDF转换为Markdown和JSON格式。安装前需准备Python 3.10-3.13环境,推荐使用8核CPU和32GB内存。支持通过HuggingFace或ModelScope下载模型,国内用户建议使用ModelScope源加速下载。配置文件中可设置本地模型路径,支持多种语言识别和两种解析后端(Pipeline和VLM)。输出包含可视化文件、内容文件和中间结果文件,并提供了完整的Python API调用示例。

算法工程师 2031

YOLOv8 骨骼结构识别详细说明

YOLOv8骨骼结构识别是一种基于深度学习技术的医学影像分析方法,主要用于X光、CT等影像中的骨骼定位与识别。该系统具有多骨骼同步识别能力,可应用于手部、脊柱、骨盆等不同部位,并能精确定位骨骼关键点。技术实现包括数据预处理、模型训练、推理检测、关键点分析和批量处理五个核心模块,支持骨折检测、骨龄评估等临床应用。该系统需注意医学合规性,要求高质量标注数据,并针对骨骼影像特点进行特征工程优化,同时考虑不同设备的部署需求。

u010117029的博客 333

webservice报错

HTTP 请求未经客户端身份验证方案“Basic”授权。从服务器收到的身份验证标头为“Basic realm="SAP NetWeaver Application Server。可能原因:接口账号密码错误、接口账号密码错误多次被锁定。

哈士奇呀的博客 470

游戏引擎定制化:大厂如何玩转性能极限(大白话生动有趣版)

游戏大厂如何深度定制游戏引擎?本文系统解析了商业引擎的局限性及大厂定制化的核心诉求。主要内容包括: 大厂定制引擎的根本原因:性能瓶颈、差异化需求、自有生态整合等 主流引擎的优劣势对比及适用场景 定制化重点领域:渲染管线优化、物理系统重构、网络架构改造等 全流程定制方案:从需求分析到模块重构再到工具链开发 典型案例:如腾讯CF手游的渲染优化、原神的热更新系统等 文章指出,顶级游戏产品必须对引擎核心模块动刀,通过深度定制实现性能突破和创新功能开发。同时提供了风险规避建议和技术演进趋势,为游戏开发者提供了宝贵的实

本博客聚焦游戏开发技巧、创业实战心得及大学热门课程干货。这里既有技术深度,也有思维广度,无论你是开发者、创业者还是高校学子,都能在这里找到适合自己的成长之路! 635

Lyngva WordPress Theme Review: Build a Fast Translation Agency Site

【代码】Lyngva WordPress Theme Review: Build a Fast Translation Agency Site。

2601_96870803的博客 293

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

Spring Boot+MyBatis-Plus社区医疗预约挂号系统设计与实现

预约挂号系统是典型的Web业务应用,涵盖用户认证、数据持久化、并发控制等基础概念。Spring Boot框架以其自动化配置简化了项目搭建,MyBatis-Plus进一步提升了单表操作的开发效率。针对号源稀缺场景,采用乐观锁机制保证并发下数据一致性,是该类系统的技术亮点。此类系统在社区医疗、门诊预约等领域有广泛应用场景,也是Java开发者适合练手的完整项目。从系统架构设计、数据库表结构到核心预约接口实现,再到部署测试与答辩准备,详细呈现一个社区医疗预约挂号平台的开发全流程,并提供了排班管理、防重复预约等关键逻

weixin_34236869的博客 405

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

Kiddino Theme Breakdown: Architecture, Speed, & Childcare Site Setup

div>

2601_96870803的博客 154

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

工作中使用到的单词(软件开发)

1.エイリアス   alias 别名 powershell使用 get-help 命令时,会得到与此命令 相关(别名)的命令 2.プロキシ proxy 代 理 3.プロモート   promote 促进,提升   开发的系统新功能上线发布,有时会使用到这个词,比如 STプロモート 还有使用リリース这个词的。比如STリリース。个人认为两者含义相同。 4.見逃し み................................................................

sun0322 6万+

基于贾子理论与THL-5真理硬度标准的概率拟合大模型结构性破产必然性研究

摘要 本研究基于贾子理论与THL-5真理硬度标准,对概率拟合大模型的结构性破产必然性进行了深入分析。当前以Transformer架构和自回归令牌概率预测为核心的概率拟合大模型,通过海量数据统计关联分析生成内容,而非基于公理体系的因果逻辑推演。研究发现,该技术路径的边际效益正快速衰减:算力、数据和模型规模呈指数级扩张,但实际性能提升有限,投入产出比严重失衡。 通过全球头部企业财报和行业实测数据,本文从技术逻辑、成本结构和商业变现等维度证明:概率拟合大模型存在成本指数增长与营收线性增长的不可逆矛盾,企业净现金流

首席技术执行官CTO(Chief Technology Officer)|技术总监--邓斌博客 1342

Flex跨域调用Webservice 问题 解决 Channel.Security.Error

环境:arcgis 10 server,map,catalog,flex2.5,xp系统上的IIS6.0 问题症状:catalog建立发布好服务后,用flex viewer调用服务显示提示提示错误,错误信息为 faultCode="Channel.Security.Error"                 Security error accessing url 还有其他一些提示信息

GIS骆驼的GIS博客 7374

linux物理机无法正常开机

前提概要 某客户有一套Oracle Rac服务器,数据库监听服务出了故障后,DBA未做其他操作的情况下(关库等),直接重启了两台服务器,导致两台服务器无法正常开机进入系统,至此展开了排错旅程。 故障说明 两台服务器开机都出现了如下报错: 从报错上来看,提示基本都是网络有问题,于是我就针对网络进行了排查。 首先我要进入单用户模式来进行排查服务 在该界面按e进入配置 修改ro为rw在UTF8后面空格加single,然后按ctrl+x进入单用户模式 输入root密码然后回车 按报错提示我想到的是Netw

杭州吉网-运维日记 2431

Webgoat学习笔记

0x00 安装 WebGoat的版本区别 WebGoat是一个渗透破解的习题教程,分为简单版和开发版,GitHub地址. 简单版安装 简单版是个JAVA的Jar包,只需要有Java环境,然后在命令行里执行 1 2 3 <code>#!bash java -jar webgoat-container-7.0.1-war-exec.jar </code> 然后就可以访问"127.0.0.1

swordheart的博客 4164
上一篇: 利用JFreeChart在browser中绘图(Servlet)
下一篇: 装饰器模式(Decorator)[转载]
TopestCoder
博客等级 码龄19年 12粉丝 19原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值