首页> 外国专利> METHOD AND APPARATUS FOR AUTHORITY CONTROL, COMPUTER DEVICE AND STORAGE MEDIUM

METHOD AND APPARATUS FOR AUTHORITY CONTROL, COMPUTER DEVICE AND STORAGE MEDIUM

机译:用于权限控制,计算机设备和存储介质的方法和装置

摘要

The present disclosure relates to a method and an apparatus for authority control, a computer device, and a storage medium, and relates to the field of the Internet technologies. The method includes: acquiring a configuration file according to a business scenario when a container is initialized, wherein the configuration file is managed outside the container; validating the configuration file in the container; receiving a user instruction; identifying a type of the user instruction when the user instruction is an executable instruction; acquiring script content of a script file when the type of the user instruction indicates that the user instruction is the script file, wherein the script content includes at least one command statement; and performing a validity check on the at least one command statement based on the configuration file. By the above method, during the use of the container, the user authorities in the container are controlled according to the business scenario, and the user authorities are controlled from the aspect of a smaller granularity, thereby improving the use security of the container while achieving the adjustability of the authorities.
机译:本公开涉及一种用于权限控制,计算机设备和存储介质的方法和装置,并且涉及互联网技术领域。该方法包括:当初始化容器时,根据业务场景获取配置文件,其中配置文件在容器外部管理;验证容器中的配置文件;接收用户指令;识别用户指令是可执行指令时的用户指令的类型;当用户指令的类型指示用户指令是脚本文件时获取脚本文件的脚本内容,其中脚本内容包括至少一个命令语句;并在基于配置文件对至少一个命令语句执行有效性检查。通过上述方法,在使用容器期间,根据业务场景,控制容器中的用户权限,并且用户权限由较小粒度的方面控制,从而在实现时提高容器的使用安全性当局的可调节性。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号