Skip to content

ridp_rba : add subscribers and publisher in EA#6090

Open
jayreddy519 wants to merge 5 commits intotrunkfrom
CU_868htgrzy
Open

ridp_rba : add subscribers and publisher in EA#6090
jayreddy519 wants to merge 5 commits intotrunkfrom
CU_868htgrzy

Conversation

@jayreddy519
Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The title follows our guidelines
  • Tests for the changes have been added (for bug fixes/features), and they use let helpers and before blocks.
  • For all UI changes, there is Cucumber coverage.
  • Any endpoint touched in the PR has an appropriate Pundit policy. For open endpoints, the reasoning is documented in the PR and code.
  • Any endpoint modified in the PR only responds to the expected MIME types.
  • For all scripts or rake tasks, how to run them is documented in both the PR and the code.
  • There are no inline styles added.
  • There is no inline JavaScript added.
  • There is no hard-coded text added/updated in helpers/views/JavaScript. New/updated translation strings do not include markup/styles unless there is supporting documentation.
  • Code does not use .html_safe.
  • All images added/updated have alt text.
  • Does not bypass RuboCop rules in any way.

PR Type

What kind of change does this PR introduce?:

  • Bugfix
  • Feature (requires Feature flag)
  • Data fix, Migration, or Report (inert code, no impact until run)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • CI related changes
  • Dependency updates (e.g., add a new gem or update to a version)
  • Release (Prepares code for a release, e.g., version bumps, changelog updates, tagging, deployment scripts)

What is the ticket # detailing the issue?

Ticket: https://app.clickup.com/t/868htgrzy

A brief description of the changes:

Current behavior:
No AMQP publisher exists for RIDP RBA in Enroll.
No subscriber exists in Enroll to receive RIDP RBA determination responses from FDSH Gateway.

New behavior:

Publishers::Fdsh::RidpRbaPublisher publishes determination_requested and get_record_requested events to enroll.ridp_rba exchange.

Subscribers::FdshGateway::RidpRbaDeterminationSubscriber consumes from fdsh.ridp_rba exchange and delegates to ProcessDeterminationResponse operation.

Feature Flag

For all new feature development, a feature flag is required to control the exposure of the feature to our end users. A feature flag needs a corresponding environment variable to initialize the state of the flag. Please share the name of the environment variable below that would enable/disable the feature and indicate which client(s) it applies to.

Variable name:

  • DC
  • ME

Additional Context

Include any additional context that may be relevant to the peer review process.

@jayreddy519 jayreddy519 added the enhancement New feature or request label Mar 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds AMQP publisher and subscriber for RIDP RBA (Risk-Based Authentication) to enable communication with the FDSH Gateway for identity proofing.

Changes:

  • New RidpRbaPublisher that registers determination_requested and get_record_requested events on the enroll.ridp_rba exchange.
  • New RidpRbaDeterminationSubscriber that consumes from the fdsh.ridp_rba exchange and delegates to a ProcessDeterminationResponse operation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
app/event_source/publishers/fdsh/ridp_rba_publisher.rb New publisher for RIDP RBA events
app/event_source/subscribers/fdsh_gateway/ridp_rba_determination_subscriber.rb New subscriber consuming RIDP RBA determination responses

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ymhari
Copy link
Copy Markdown
Contributor

ymhari commented Mar 17, 2026

Add event files to publisher and subscriber.

@jayreddy519
Copy link
Copy Markdown
Contributor Author

Added event files to publisher && subscriber.

handle_failure_response(job_id)
logger.info 'FdshGateway::RidpRbaDeterminationSubscriber: on_determined acked and processed failure from fdsh_gateway'
else
result = Operations::Fdsh::RidpRba::ProcessDeterminationResponse.new.call(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment this as the operation has not been built yet.

…ariable'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Signed-off-by: Jay Reddy <jayanth.rordev@gmail.com>
@jayreddy519 jayreddy519 requested review from geetha-1z and ymhari March 27, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants