Skip to content

feat: added logger to vault app connection for debug#5403

Merged
akhilmhdh merged 4 commits intomainfrom
chore/hc-logger
Feb 9, 2026
Merged

feat: added logger to vault app connection for debug#5403
akhilmhdh merged 4 commits intomainfrom
chore/hc-logger

Conversation

@akhilmhdh
Copy link
Member

Context

This PR adds a error log to debug the app connection failing reason for hashicloud app connection

Screenshots

Steps to verify the change

Type

  • Fix
  • Feature
  • Improvement
  • Breaking
  • Docs
  • Chore

Checklist

  • Title follows the conventional commit format: type(scope): short description (scope is optional, e.g., fix: prevent crash on sync or fix(api): handle null response).
  • Tested locally
  • Updated docs (if needed)
  • Read the contributing guide

@akhilmhdh akhilmhdh requested a review from varonix0 February 9, 2026 09:47
@maidul98
Copy link
Collaborator

maidul98 commented Feb 9, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 9, 2026

Greptile Overview

Greptile Summary

This PR adds a single error log in getHCVaultAccessToken’s catch block to help debug failures when validating HashiCorp Vault AppRole-based app connections.

The change is localized to the HC Vault app-connection helpers in backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts, which are used during connection validation and when making Vault API calls (optionally via the gateway proxy).

Confidence Score: 4/5

  • Mostly safe to merge, but current logging change can leak sensitive Vault credentials into logs.
  • Change is small and improves observability, but logging the raw error object during credential validation can include Axios request config/headers and may persist secrets (tokens/namespace) in centralized logs; this should be sanitized before merge.
  • backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts

Important Files Changed

Filename Overview
backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts Added an error log in getHCVaultAccessToken() catch block to help debug AppRole connection failures; verify logging does not leak sensitive Axios/request details.

3 similar comments
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 9, 2026

Greptile Overview

Greptile Summary

This PR adds a single error log in getHCVaultAccessToken’s catch block to help debug failures when validating HashiCorp Vault AppRole-based app connections.

The change is localized to the HC Vault app-connection helpers in backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts, which are used during connection validation and when making Vault API calls (optionally via the gateway proxy).

Confidence Score: 4/5

  • Mostly safe to merge, but current logging change can leak sensitive Vault credentials into logs.
  • Change is small and improves observability, but logging the raw error object during credential validation can include Axios request config/headers and may persist secrets (tokens/namespace) in centralized logs; this should be sanitized before merge.
  • backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts

Important Files Changed

Filename Overview
backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts Added an error log in getHCVaultAccessToken() catch block to help debug AppRole connection failures; verify logging does not leak sensitive Axios/request details.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 9, 2026

Greptile Overview

Greptile Summary

This PR adds a single error log in getHCVaultAccessToken’s catch block to help debug failures when validating HashiCorp Vault AppRole-based app connections.

The change is localized to the HC Vault app-connection helpers in backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts, which are used during connection validation and when making Vault API calls (optionally via the gateway proxy).

Confidence Score: 4/5

  • Mostly safe to merge, but current logging change can leak sensitive Vault credentials into logs.
  • Change is small and improves observability, but logging the raw error object during credential validation can include Axios request config/headers and may persist secrets (tokens/namespace) in centralized logs; this should be sanitized before merge.
  • backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts

Important Files Changed

Filename Overview
backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts Added an error log in getHCVaultAccessToken() catch block to help debug AppRole connection failures; verify logging does not leak sensitive Axios/request details.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 9, 2026

Greptile Overview

Greptile Summary

This PR adds a single error log in getHCVaultAccessToken’s catch block to help debug failures when validating HashiCorp Vault AppRole-based app connections.

The change is localized to the HC Vault app-connection helpers in backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts, which are used during connection validation and when making Vault API calls (optionally via the gateway proxy).

Confidence Score: 4/5

  • Mostly safe to merge, but current logging change can leak sensitive Vault credentials into logs.
  • Change is small and improves observability, but logging the raw error object during credential validation can include Axios request config/headers and may persist secrets (tokens/namespace) in centralized logs; this should be sanitized before merge.
  • backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts

Important Files Changed

Filename Overview
backend/src/services/app-connection/hc-vault/hc-vault-connection-fns.ts Added an error log in getHCVaultAccessToken() catch block to help debug AppRole connection failures; verify logging does not leak sensitive Axios/request details.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

varonix0
varonix0 previously approved these changes Feb 9, 2026
@akhilmhdh akhilmhdh merged commit 6911d58 into main Feb 9, 2026
10 checks passed
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.

3 participants