openintegrationhub: Local setup of OIH - Can't create components and OIH user is redirected to auth login page when clicking on Hub & Spoke menu option in Web-UI
Describe the bug While following the User Tutorial following bugs appeared
- After configuring a component in JSON format in the Web-UI service, you click save and you return to the Web-UI. Then you should see listed configured components, but nothing is appearing, also the component count equals zero.
- When clicking on Hub & Spoke OIH the Web-UI immediately redirects to login page
http://web-ui.localoih.com/auth
To Reproduce
I followed the steps from the official Local Setup tutorial from the OpenIntegrationHub Homepage
After that via postman I created the admin token, the service account and the persistent service token. Then I replaced the placeholder in the SharedSecret.yaml with the base64 encoded persistent service token. Then I applied the Secret Service and the rest of the services to the kubernetes node.
Then I continued with the User Tutorial
Steps to reproduce the behavior:
- Setup minikube v1.7.3 and kubernetes v1.17.0
- Start minikube
minikube start --vm-driver=virtualbox --memory 16384 --cpus 4 kubectl apply -f ./1-Platform- Windows host rule setup
kubectl apply -f ./2-IAM- Login as Admin and generate token
- Create a Service Account
- Create persistent token
- Base64 encode the returned token
- Copy encoded token to
SharedSecret.yamland set entry foriamtoken kubectl apply -f ./3-Secret.kubectl apply -Rf ./4-Services- Open Web-UI and login via admin account
- Do the User Tutorial
- Click on Components, click on
Addbutton and copy example json connectors, click on save
{
"distribution":{
"type":"docker",
"image":"elasticio/timer:ca9a6fea391ffa8f7c8593bd2a04143212ab63f6"
},
"access":"public",
"name":"Timer",
"description":"Timer component that periodically triggers flows on a given interval"
}
- No data / component stored (see provided screenshot). Component count equals zero
- For component
Hub and Spoke: When clicking, I am immediately redirected tohttp://web-ui.localoih.com/auth
Expected behavior
- Components should be stored and displayed correctly
- The service Hub & Spoke should work and display correctly.
Screenshots
Configuring component
After saving nothing (no component) displayed:

About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (14 by maintainers)
@tboehle Alright, I think I got it to work. It should work automatically on a fresh install, but if you’d like to modify your existing installation instead, here’s how to:
Download the newest version of the
minikubefolder.Expose urls to the new services:
kubectl apply -f ./1-Platformyour_minikube_ip app-directory.localoih.com,your_minikube_ip skm.localoih.com, your_minikube_ip dispatcher-service.localoih.com. Alternatively, you can also just re-add the whole batch as described on the updated ReadmeUsually this would be unsafe, as the “all” permission is very powerful, but on a local installation that shouldn’t be an issue.
kubectl apply -f ./3-SecretUpdate, find the fieldidand copy its value./4-Services/dispatcher-service/k8sand open the filedeployment.yaml.ReplaceMewith the id value you just copied. Make sure you don’t accidentally change anything about the indentations of the filekubectl apply -Rf ./4-ServicesAnd that should hopefully do the trick, allowing you to access the App Directory and Hub&Spoke menus in the WebUi to experiment with them. If any issues persist, please do feel free to let us know!
@tboehle You’re correct that fetching specific data on demand is not currently part of the usual integration flow concept. So far, they’re one-directional: The source-adapter fetches data based on information it only knows locally (usually anything that updated since the last fetch) and pushes that data down the line, where it is eventually pushed to the target application.
However, the Data Hub might offer an approach for a use-case like this. As you may already know, the Data Hub can optionally be used as a central data store for flows. So you could have an arbitrary number of source applications feeding data into the Data Hub for storage, which could then be fetched on demand by a target application via the Data Hub’s REST API. The logic for when and what to fetch would have to be implemented outside the OIH, however.
@tboehle Ah, I think that’s because you’re sending
When instead it should be
The curly braces in the readme are just intended to signify a placeholder, which is… probably not the cleanest way to do that. In practice the string should only contain the id itself and nothing else. I’ll update it to make it less confusing. 😅
As for the IAM Swagger, thanks for catching that, I’ll pass it along!
@tboehle Ah yes, looks like a bit of the documentation got swallowed there somehow. The idea is that you create a viewable webhook using a site like https://webhook.site. This will give you a link to plug into the
[ADD WEBHOOK URL HERE]part. After that, any request sent by the OIH should pop up on the webhook.site interface. We’ll see about making that process a bit clearer in the documentation soon.Progress update on Hub&Spoke: So far I’ve managed to get the Hub&Spok service itself running locally, but its integration with the web-ui is giving me some headaches. But at the very least it will be usable via Postman or something similar. I’ll post again later today or tomorrow with a more detailed how-to.