Submitting a Database Approval Ticket
Scenarios
You can enable Dynamic approval for database operations to enhance the control over key database operations.
During O&M on a database, if an operation command triggers the database rule for Dynamic approval, the system automatically intercepts the operation command and generates a database approval ticket. The approval ticket is sent to the administrator. After the administrator approves the ticket, you obtain the permission to run the operation command.
This section describes how to submit a database approval ticket.
Notes and Constraints
- The database operation audit is available only in professional editions.
- A bastion host can intercept sensitive operation commands and generate tickets only for MySQL and Oracle databases.
Prerequisites
Your role has the management permission for the DB Tickets module. For details about how to check the permissions of each role, see Role.
Automatically Generating a Database Approval Ticket
If you have created a database rule and set the action to Dynamic approval, the system will reject the command when the rule is triggered during O&M. In this case, the message Operation "xxx" is rejected. Please submit a DatabaseControl authorization ticket is displayed, and a database approval ticket is generated. You can choose Ticket > DB Tickets in the bastion host system to view the automatically generated database approval ticket in the ticket list. The command can be executed only after the service ticket is submitted and approved.
The database approval tickets automatically generated by the database rule can be submitted in Auto or Manual mode. For details about how to configure the mode, see Configuring Basic Ticket Settings.
- Manual (default): After a database rule is triggered to generate a database approval ticket, the ticket is generated only in the database approval ticket list. O&M personnel need to submit the ticket to the administrator for approval.
- Auto: After a database rule is triggered to generate a database approval ticket, the ticket is generated in the database approval ticket list and automatically submitted to the administrator for approval.
Manually Submitting a Database Approval Ticket
If Submission mode is set to Manual, after a database approval ticket is automatically generated based on the database rule, you need to manually submit the ticket to the administrator for approval.
- Log in to your bastion host system.
- In the navigation pane on the left, choose Ticket > DB Tickets. The database approval ticket list page is displayed.
- In the Operation column of the target ticket, click Submit.
Manually Creating and Submitting a Database Approval Ticket
Manual ticket creation allows you to submit requests for approval in advance. After the administrator approves the ticket, the system automatically executes the task at the designated time, even if the administrator is offline. This is ideal for after-hours maintenance or nighttime changes. Conversely, automatically generated tickets require real-time administrator approval to run. If the administrator is offline, the approval workflow cannot proceed, which may delay O&M tasks.
- Log in to your bastion host system.
- In the navigation pane on the left, choose Ticket > DB Tickets. The database approval ticket list page is displayed.
- Click Create. In the displayed dialog box, configure the database approval ticket information by referring to Table 1.
Table 1 Parameters for creating a database approval ticket Parameter
Description
Operation Time
Set the time period for accessing the resource. The start time and end time must be set.
Protocol
Select the database protocol type.
Cmd
Select the command to be executed.
There are 29 preconfigured common database operation commands, including ALTER, TRUNCATE, EXECUTE, INSERT, DELETE, UPDATE, SELECT, GRANT, REVOKE, HANDLER, DEALLOCATE, SET, COMMIT, ROLLBACK, PREPARE, CREATEINDEX, DROPINDEX, CREATEFUNCTION, DROPFUNCTION, CREATEVIEW, DROPVIEW, CREATEDATABASE, DROPDATABASE, CREATEPROCEDURE, DROPPROCEDURE, CREATETABLE, DROPTABLE, CALL, and ACCESS.
Remarks
(Optional) Briefly describe the reason for applying for the service ticket or provide other information.
- Click Next and select the resource account to be accessed.
- Click OK to create and submit the ticket.
Return to the service ticket list page to view the submitted service ticket.
Related Operations
- Modifying a service ticket: If a service ticket is rejected by the administrator, or if the applicant withdraws the service ticket, the applicant can modify the service ticket information and submit it again. Click Manage in the Operation column of the service ticket to go to the details page and view or modify the service ticket information.
For tickets in the approving status, you can only view the details but cannot modify the content. Only the ticket in the Revoked or Not submitted state can be modified.
- Withdrawing a ticket: To modify a submitted ticket, locate the row of the ticket and click Withdraw in the Operation column to cancel the ticket. Then, the ticket status changes to Revoked.
- Deleting a ticket: If a submitted ticket has expired, locate the row of the ticket and click Delete in the Operation column to delete the ticket. You can also select multiple tickets and click Delete in the lower left corner of the list to delete the selected tickets all at once.
Deleted tickets cannot be recovered. Exercise caution when performing this operation.
Follow-up Operations
After a user submits a ticket, the administrator will receive a notification in the message center. The administrator can check ticket details there. The ticket will be displayed on the Ticket approval page. On this page, the administrator can approve, reject, or revoke the authorization for the ticket. For details, see Viewing and Approving Tickets.
- If the administrator approves a ticket, the user then obtains the command operation permissions within the authorization scope and period.
- If the administrator rejects a ticket, the user cannot obtain the corresponding permissions.
- If the administrator revokes the authorization for a ticket, the operation commands allowed by the ticked will be intercepted then.