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

Q&A- Tec: Credential Revocation #29

Closed
MyriamLara opened this issue Feb 23, 2024 · 12 comments
Closed

Q&A- Tec: Credential Revocation #29

MyriamLara opened this issue Feb 23, 2024 · 12 comments
Assignees

Comments

@MyriamLara
Copy link

Another topic that we want to share with you is regarding the revocation of a credential. We share evidence with you (images 4 and 5).

Image 4
image
image

Image 5
image

This error is always triggered when trying to revoke the credential.

@alexfigtree alexfigtree moved this to Follow-up in DCC Engineering Feb 28, 2024
@alexfigtree alexfigtree self-assigned this Feb 28, 2024
@alexfigtree
Copy link
Member

@MyriamLara What is running on running on port 4008? Could you please show us an error log from the relevant microservice?

@MyriamLara
Copy link
Author

@alexfigtree

el contenedor de status en el puerto 4008 esta corriendo pero desde payload no lo alcanza a servidor por fetch:
y no alcanzamos a hacer ninguna solicitud
image
image

Por lo tanto nuestra propuesta es que mejor usen axios en lugar de fetch
https://www.npmjs.com/package/axios

@jchartrand
Copy link
Contributor

@MyriamLara

Could you show us your docker compose file and any .env files? Taking out the secret parts of course.

In particular, we want to see what your GitHub configuration for the status list looks like. If you'd rather not post it here in this issue, feel free to email me.

Thanks!

@AngelOCrz94
Copy link

I attach the versions and environment variables that we use to test the application and we cannot revoke the credential. Can't find the container. I know there is another URL that works, but we don't want to depend on the external service. Solo status of the container. I tried it directly on postaman and the service works. In the payload backend it cannot be linked. You must see some problem with the IP of the containers or ports. Check it. Greetings

dcc_admin_dashboard.zip

@kayaelle
Copy link
Member

@jchartrand - would you look into this issue? Could it be related to the version of the software being used?

@jchartrand
Copy link
Contributor

@AngelOCrz94 I'm not sure if you meant to include the .env files in the zip? I just see the docker compose file. You could email them to me if that's easier/better.

@AngelOCrz94
Copy link

@jchartrand in a moment send you to email this files .env

@AngelOCrz94
Copy link

I not have shared configuration is own tec. Because no found the revocation.

@alexfigtree alexfigtree moved this from Follow-up to In Progress in DCC Engineering Apr 24, 2024
@alexfigtree alexfigtree self-assigned this Apr 24, 2024
@jchartrand
Copy link
Contributor

@MyriamLara @AngelOCrz94

Could you try changing the env variable called STATUS_URL to: http://status:4008 (you had it set to http://localhost:4008) and then try revoking a credential again?

Thanks!

@MyriamLara
Copy link
Author

@jchartrand

The adjustment that was indicated to us has been made and the revocation is now working successfully, however now we have the following doubts:

1.- Is it correct to make this value change?; That is, so we are no longer using the status container service?

2.- We understand that it should work with the status container service (which does not work even locally) and not with an external service (http://status:4008), and if we are going to use an external service What is the point of creating the container if another service is going to be used?

image

@jchartrand
Copy link
Contributor

jchartrand commented Jun 13, 2024

@MyriamLara

Good question. Yes, it is still using the local status container service.

http://status:4008 is the address for the service within the docker compose network. It is one of the very cool features of docker compose that lets the containers within the compose network talk to each other. The docker compose network knows to resolve http calls to 'status' to the local service container.

@alexfigtree alexfigtree moved this from In Progress to Done (Deployed) in DCC Engineering Jun 14, 2024
@alexfigtree
Copy link
Member

@AngelOCrz94 confirms that this issue is resolved during a team meeting on 6/14/24. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (Deployed)
Development

No branches or pull requests

6 participants