Skip to content

fix(teo): add Sensitive markers and nil checks for l7_acc_rule resources - #4390

Open
iac-agent wants to merge 1 commit into
masterfrom
fix/teo-l7-acc-rule-sensitive-nil-check
Open

iac-agent wants to merge 1 commit into
masterfrom
fix/teo-l7-acc-rule-sensitive-nil-check

Conversation

@iac-agent

Copy link
Copy Markdown
Collaborator

This PR fixes issues found in the TEO L7 Accelerated Rules evaluation:

  1. Sensitive fields: Added Sensitive:true to secret_key, backup_secret_key, and secret_access_key fields to prevent plaintext leakage in state files and logs.

  2. Create method (v2): Added proper nil checks for result, result.Response, and RuleIds in the CreateL7AccRules API call; return NonRetryableError when responses are empty.

  3. Read method (v1+v2): Fixed log order to preserve d.Id() before calling SetId for debugging.

  4. Update method (v2): Added nil check for result and result.Response in the ModifyL7AccRule API call.

  5. Delete method (v2): Added nil check for result and result.Response in the DeleteL7AccRules API call.

  6. Service layer: Added nil check for response.Response in DescribeTeoL7AccRuleById.

- Add Sensitive:true to secret_key, backup_secret_key, secret_access_key fields
- Add nil checks for Create/Modify/Delete API response in v2 resource
- Fix Read method log order to preserve d.Id() before SetId('')
- Add response.Response nil check in DescribeTeoL7AccRuleById service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant