Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid accidental calling of TC BUS API when setup locally #506

Open
maxceem opened this issue Mar 18, 2020 · 0 comments
Open

Avoid accidental calling of TC BUS API when setup locally #506

maxceem opened this issue Mar 18, 2020 · 0 comments

Comments

@maxceem
Copy link
Contributor

maxceem commented Mar 18, 2020

It seems someone is sending the kafka events to the dev env from local machine for test projects:

{
    "name": "tc-projects-consumer-dev",
    "hostname": "7f1987bcec5e",
    "pid": 34,
    "level": 20,
    "msg": "Consume topic 'connect.notification.project.plan.updated' with message: '{\"topic\":\"connect.notification.project.plan.updated\",\"originator\":\"project-api\",\"timestamp\":\"2020-03-18T07:08:35.038Z\",\"mime-type\":\"application/json\",\"payload\":{\"projectId\":1,\"projectName\":\"test1\",\"projectUrl\":\"https://local.topcoder-dev.com/projects/1\",\"userId\":40051331,\"initiatorUserId\":40051331,\"allowedUsers\":null}}'.",
    "time": "2020-03-18T07:08:35.687Z",
    "v": 0
}

12:38:35
{"name":"tc-projects-consumer-dev","hostname":"7f1987bcec5e","pid":34,"level":50,"msg":"Message processing failed: Error: Project with id 1 not found","time":"2020-03-18T07:08:35.699Z","v":0}
{
    "name": "tc-projects-consumer-dev",
    "hostname": "7f1987bcec5e",
    "pid": 34,
    "level": 50,
    "msg": "Message processing failed: Error: Project with id 1 not found",
    "time": "2020-03-18T07:08:35.699Z",
    "v": 0
}

Notes:

  • in our local setup the default value for busApiUrl: "http://localhost:8002/v5",
  • probably we can prohibit calling BUS API in the M2M credentials, that we are sharing with the community. Or no, maybe it’s not a good idea if there are any cases we want to setup Projec Service locally and still point to TC BUS API on DEV.
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

No branches or pull requests

1 participant