Skip to content

Make ES_SERVER configurable based on slack channel#104

Merged
vishnuchalla merged 7 commits into
redhat-performance:mainfrom
Balatripura587:es-server-config
May 8, 2026
Merged

Make ES_SERVER configurable based on slack channel#104
vishnuchalla merged 7 commits into
redhat-performance:mainfrom
Balatripura587:es-server-config

Conversation

@Balatripura587
Copy link
Copy Markdown
Contributor

Problem
Currently, es_server is hardcoded in orion-mcp. We want to enable configuring the es_server based on channel and communicate that to orion-mcp.

Fix
Enables BugZooka to securely transmit channel-specific Elasticsearch configurations to orion-mcp via encrypted HTTP headers.

  • Per-channel ES configuration mapping (different ES servers per Slack channel)
  • AES-256-GCM encryption for ES configs transmitted to orion-mcp
  • Encrypted configurations are transmitted to orion-mcp vida HTTP headers
  • In Orion-mcp, headers are decrypted and fallback to default env if Elasticsearch configuration not provided

Testing
Tested locally using test workspace. Attached screenshots of the terminal logs

orion-mcp logs
Screenshot 2026-04-22 at 10 11 49 AM

bugzooka logs
Screenshot 2026-04-22 at 10 12 50 AM

Balatripura587 and others added 4 commits April 22, 2026 09:30
Signed-off-by: Bala Tripura Kumari Bodapati <bbodapat@redhat.com>
Signed-off-by: Bala Tripura Kumari Bodapati <bbodapat@redhat.com>
Signed-off-by: Bala Tripura Kumari Bodapati <bbodapat@redhat.com>
@Balatripura587 Balatripura587 marked this pull request as ready for review April 22, 2026 17:40
Signed-off-by: Bala Tripura Kumari Bodapati <bbodapat@redhat.com>
Comment thread bugzooka/core/config.py Outdated
Comment thread bugzooka/core/es_encryption.py Outdated
logger = logging.getLogger(__name__)


def generate_encryption_key() -> str:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is a one time thing. We don't need it here.

Comment thread bugzooka/core/es_encryption.py Outdated
Comment thread bugzooka/core/es_encryption.py Outdated
return es_data


def encrypt_es_config(channel_id: str, es_channel_mappings: dict) -> str:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sweet.

Comment thread bugzooka/integrations/mcp_interceptors.py Outdated
Signed-off-by: Bala Tripura Kumari Bodapati <bbodapat@redhat.com>
@vishnuchalla
Copy link
Copy Markdown
Collaborator

@Balatripura587 merged orion-mcp PR. Mind quick rebase and verifying the functionality e2e?

…_URL constants

Co-authored-by: Cursor <cursoragent@cursor.com>
@vishnuchalla
Copy link
Copy Markdown
Collaborator

/lgtm
nice work!

@vishnuchalla vishnuchalla merged commit 250ab7d into redhat-performance:main May 8, 2026
2 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.

2 participants