[Spring Boot Project] Control database access permissions based on user roles

Article directory Introduction method one Add database dependency Configure database connection Create user role table Create Spring Data JPA entities and warehouses Implement custom gateway filters Configure gateway filter A few simple test APIs Method Two Create database access interface Implement database access interface Create user role judgment logic Create a gateway filter Configure gateway […]

postgresql users and roles

postgresql users and roles Brief description Creating a Role Role attributes Login privileges root Create database Creating a Role Start replication password Modify character attributes Object authorization Revoke authorization Groups and members Delete role Brief description PostgreSQL controls database access permissions through the concept of roles. Role includes two concepts, including login A role with […]

Based on Ruoyi-nbcio’s support for flowable process roles, and at the same time modifying the flow user to username, the process startup will be greatly adjusted (2)

For more ruoyi-nbcio functions, please see the demo system gitee source code address Front-end and back-end code: https://gitee.com/nbacheng/ruoyi-nbcio Demonstration address: RuoYi-Nbcio backend management system Continuing from the above article. 1. Obtain the exclusive gateway branch name, branch expression, and next-level task node /** * Get the exclusive gateway branch name, branch expression, and next-level task […]

Based on ruoyi-nbcio’s support for flowable process roles, and at the same time modifying the flow user to username, the process startup will be greatly adjusted (1)

For more ruoyi-nbcio functions, please see the demo system gitee source code address Front-end and back-end code: https://gitee.com/nbacheng/ruoyi-nbcio Demonstration address: RuoYi-Nbcio backend management system The original process based on it does not support role transfer. At the same time, without any processing of the node logic after startup, many problems will be encountered. At the […]

How to quickly debug Distroless containers on Kubernetes

Follow the “Wonderful World of Linux” on the public account Set it as a “star” and let you play Linux every day! Summary of content Contents of this article: ?Introduction to distroless images, functions and simple usage? How to debug distroless containers? Use of temporary containers (v.1.18 +) Distroless Mirror Distroless container, as the name […]

Based on ruoyi-nbcio’s support for flowable process roles, and at the same time modifying the flow user to username, the process startup will be greatly adjusted (3)

For more ruoyi-nbcio functions, please see the demo system gitee source code address Front-end and back-end code: https://gitee.com/nbacheng/ruoyi-nbcio Demonstration address: RuoYi-Nbcio backend management system Continuing from the previous article. 1. Set multiple instances and other related parameters //Set the next node process data for a single user private void setAssigneeFlowNetDto(FlowNextDto flowNextDto,List<SysUser> list,UserTask userTask) { flowNextDto.setVars(ProcessConstants.PROCESS_APPROVAL); […]

Henghe Warehouse – role management, enabling or disabling roles, assigning permissions to roles

Role management Article directory role management 1. Query roles by page 1.1 Entity class 1.1.1 Pagination entity class 1.1.2 Role entity class 1.2 Paging business implementation 1.2.1 Mapper 1.2.2 Service 1.2.3 Controller 1.2.4 Renderings 2. Add roles 2.1 Mapper 2.2 Service 2.3 Controller 2.4 Renderings 3. Enable or disable roles 2.1 Mapper 2.2 Service 2.3 […]

Henghe Warehouse – User management, user list, assigning roles to users

Article directory User Management 1. User list 1.1 Entity class 1.1.1 Pagination entity class 1.1.2 User information entity class 1.2 Business implementation 1.2.1 UserMapper 1.2.2 Service layer 1.2.3 Controller layer 1.2.4 Renderings 2. User addition, deletion, modification and query 2.1 Add user business implementation 2.1.1 Mapper 2.1.2 Service 2.1.3 Controller 2.1.4 Renderings 2.2 Delete user […]

Shiro’s @RequiresPermissions, @RequiresRoles resolution process

The whole network’s latest explanation of shiro’s @RequiresPermissions and @RequiresRoles analysis process will definitely help you understand these two verification processes. I must have typed the following code bit by bit, but there may be problems if you use it directly. Regarding the version and some small details, here is just a little idea. According […]

ansible –roles roles

1. Overview 1.roles introduction Roles are used to organize playbooks hierarchically and structurally. Roles can automatically load variable files, tasks and handlers according to the hierarchical structure. To use roles, you only need to use the include command in the playbook to import. Simply put, roles is a mechanism that places variables, files, tasks, templates, […]