Skip to content

Conversation

stefanbitcr
Copy link
Contributor

@stefanbitcr stefanbitcr commented May 19, 2025

📝 Description

Changes

  • Authenticate user using Keycloak login
  • Use JWT tokens to authenticate requests to Envoy Proxy
  • Add Activate Keyset to UI
  • Update UI endpoints and response information

Demo environment, please see .env.development
The login for the demo user from wildcat at the time of writing (1b3b3e64af1f48a138ed80e3beb69e2564cc3521) is democat:bitcredit

This update was tested locally without running it in a docker container, pointing toward the keycloak auth endpoint and bff-dashboard-service endpoint from wildcat.

Out of scope

Currently the client and endpoints are generated using open api json. The wildcat admin endpoints are aggregated from multiple services each using their own specification.

Since only a few endpoints are practically used, there is a (re)consideration whether the proceed with OpenAPI generated code.

TODO

  • Refresh the tokens
  • Set the proper access permissions in Keycloak using the config

✅ Checklist

Please ensure the following tasks are completed before requesting a review:

  • My code adheres to the style guidelines of this project.
  • I have run npm run lint or the equivalent linting command.
  • I have added or updated tests (if applicable).
  • My changes have been tested thoroughly in different browsers/resolutions (if applicable).
  • I have updated the documentation (if applicable).
  • I have checked that there are no console errors or warnings.
  • I have verified that the application builds without errors.
  • I have tested responsiveness for mobile and desktop views (if applicable).

Screenshots

image image

@stefanbitcr stefanbitcr requested a review from mtbitcr May 19, 2025 12:55
Copy link

codecov bot commented May 19, 2025

@mtbitcr mtbitcr requested review from codingpeanut157 and zupzup May 20, 2025 06:51
@mtbitcr mtbitcr added the enhancement New feature or request label May 20, 2025
@mtbitcr mtbitcr requested review from cryptosalomao and removed request for codingpeanut157 May 20, 2025 06:51
Copy link

@zupzup zupzup left a comment

Choose a reason for hiding this comment

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

Looks good overall 👍

The token issue (if it's not just temporary) would be good to address imo

src/main.tsx Outdated
}

void prepare().then(() => {
// loadToken();
Copy link

Choose a reason for hiding this comment

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

can this be removed?

}

const onActivateKeyset = () => {
toast.loading("Activating keyset…", { id: `quote-${value.id}-activate-keyset` })
Copy link

@cryptosalomao cryptosalomao May 20, 2025

Choose a reason for hiding this comment

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

This one could go inside the onMutate callback of activateKeysetMutation mutation

@stefanbitcr stefanbitcr merged commit e0158ea into master May 21, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants