The present invention belongs to the fields of
network security, distributed systems, zero trust, and micro-services, and disclosed are a method for a micro-service dynamic
access control policy under a zero trust architecture, and an apparatus. The method specifically comprises: obtaining context information in a micro-service runtime context event by means of an event tracker of a node; a
context manager collecting and aggregating the context information and reporting same to a micro-
service control plane global manager; the global manager determining whether a new micro-service instance is present according to a global context mapping table value, and if yes, updating a global and local tag mapping table; when a message is received by a node, a message
validator obtaining a tag value carried by the message, and micro-service context information corresponding to the message being obtained by means of the local tag mapping table; after a local policy table and a global policy table are queried, running a decision
algorithm, and executing a corresponding
access control policy. The present invention uses context to identify a
communication endpoint, and has the advantages of being dynamic, precise, and extensible.