Skip to content

How does the Database work? #86

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

Open
MugenTwo opened this issue Jan 11, 2025 · 5 comments
Open

How does the Database work? #86

MugenTwo opened this issue Jan 11, 2025 · 5 comments
Labels
discussion Open for brainstorming or high-level discussion priority/low Nice to have but not critical to the project's success status/needs review Awaiting review or feedback from maintainers type/support A general inquiry or clarification request

Comments

@MugenTwo
Copy link

MugenTwo commented Jan 11, 2025

I am trying to understand how this system works.

Does it have it's own embedded database? Because I am seeing sqllite in the code and i also see the shkeeper.sqllite
image

What is the mariadb that is in the helm chart? I tried removing that DB and it still seems to be working.
It seems to have it's own init script:
image

Copy link

Official Statement from the SHKeeper Development Team

We would like to clarify that the SHKeeper development team consists solely of the following:

It is managed through our official GitHub account https://github.com/vsys-host

We NEVER:

  • Share or redirect users to unofficial or suspicious links.
  • Request private keys, funds, or other sensitive information.

If you encounter any comments, issues, or users claiming to represent SHKeeper and sharing external links or providing questionable support, please report them immediately. These individuals are not affiliated with the SHKeeper team.

For accurate information and official support, please refer only to:

Our GitHub account: https://github.com/vsys-host/shkeeper.io
Our official SHKeeper website: https://shkeeper.io/
Our official VSYS Host website: https://vsys.host/

Thank you for your understanding and vigilance.

SHKeeper Development Team

@yukonet
Copy link
Contributor

yukonet commented Jan 13, 2025

Hello,

mariadb is used for crypto pods (if such cryptocurrencies are enabled by config):

  • tron-shkeeper (partially)
  • ethereum-shkeeper
  • bnb-shkeeper
  • xrp-shkeeper
  • polygon-shkeeper
  • avalanche-shkeeper

shkeeper pod uses sqlite file

@MugenTwo
Copy link
Author

MugenTwo commented Jan 14, 2025

Hi @yukonet ! Thanks for the info! Is there a way for shkeeper pod to use another DB (like the mariadb, postgres, mysql, etc)? If such is the case, do you perhaps have any guide on that? I can see that there is a config.py that we could potentially pass parameters to

@vsyshost
Copy link
Contributor

Hi @yukonet ! Thanks for the info! Is there a way for shkeeper pod to use another DB (like the mariadb, postgres, mysql, etc)? If such is the case, do you perhaps have any guide on that? I can see that there is a config.py that we could potentially pass parameters to

Unfortunately, we haven't tested it on other DBs, so if you simply replace the database in the configuration, there is a chance that it may not work.

@ikyslyi ikyslyi added type/support A general inquiry or clarification request status/needs review Awaiting review or feedback from maintainers priority/low Nice to have but not critical to the project's success discussion Open for brainstorming or high-level discussion labels Feb 4, 2025
@MugenTwo
Copy link
Author

MugenTwo commented Feb 22, 2025

I've been trying this with Postgres and I think so far it's working.
The only change I had to make was the things related to bcrypt.
Some DB flavours dont allow storing these kinds of information as plain text.

For example:
Image

So far I've tried the major operations like payment request, withdraw, etc. and it seems to be working.

If you are interested, I can work on a PR. But please let me know how you would like me to make the DB connection info to be provided. I personally passed them through ENV var and passed it as "env" in the kubernetes deployment.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Open for brainstorming or high-level discussion priority/low Nice to have but not critical to the project's success status/needs review Awaiting review or feedback from maintainers type/support A general inquiry or clarification request
Projects
None yet
Development

No branches or pull requests

4 participants