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

Inconsistency in created vaults when Vault names is passed along to Lowkey Vault #1316

Closed
Xor-el opened this issue Jan 15, 2025 · 2 comments
Closed
Assignees
Labels
bug Something isn't working community requested Issues requested by our community wontfix This will not be worked on

Comments

@Xor-el
Copy link

Xor-el commented Jan 15, 2025

Describe the bug

while working on this, I noticed a weird inconsistency.
An image would explain it better.

image

by default, vaults are created on 127.0.0.1:8443 and localhost:8443, however if I add a vault name when building the container (let's say our vault name is demo, the new vault is only created on demo.localhost:8443. I expected that the new vault is also created on demo.127.0.0.1:8443 for consistency purposes as is the case when no vault names are passed.

To reproduce

Steps to reproduce the behavior:

  1. pass vault names via env when starting up Lowkey Vault

Expected behavior

vaults should be created on both 127.0.0.1 and localhost when custom vault names are passed.

Actual behavior

vaults is only created on localhost when custom vault names are passed.

The command you used

If applicable, add screenshots to help explain your problem.

A minimal project that can be used to reproduce the issue

If applicable. Please do NOT share sensitive information.

Environment

  • OS: [e.g. Windows]
  • Version: [e.g. 2.6.15]
  • Java version [e.g. 17.0.13]

Additional context

Add any other context about the problem here.

@Xor-el Xor-el added the bug Something isn't working label Jan 15, 2025
@nagyesta
Copy link
Owner

Hi @Xor-el ,
thank you for reporting this issue!
The behaviour you have noticed is actually as intended, please see the documentation here.
The reason for doing it this way, is because the command line argument you are using is only adding extra vaults with the predefined format and is not registering vaults (as subdomains) for each of the four default vaults.

Speaking of subdomains: you might have noticed, that the address demo.127.0.0.1 looks a bit odd compared to demo.localhost. That is because the 127.0.0.1 is an IP address, while localhost is a DNS address (although one with a special meaning). I think it would be rather odd to use a subdomain of an IP address, therefore the demo.127.0.0.1 is not something we should use. The whole point would be, that in case someone wants to, they can add an extra host to their hosts file and route to the container if they wants to. This is why the default vaults and the ones following the predefined *.localhost pattern are covered by the self-signed certificate we are using and the *.127.0.0.1 would not be.

Also, in case anyone is unhappy with how these vaults can be accessed (I mean unhappy with their names), they can use the alias feature to do so.

Does that make sense?

@nagyesta nagyesta self-assigned this Jan 16, 2025
@nagyesta nagyesta added wontfix This will not be worked on community requested Issues requested by our community labels Jan 16, 2025
@Xor-el
Copy link
Author

Xor-el commented Jan 16, 2025

Thanks for the detailed explanation, well understood.

@Xor-el Xor-el closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community requested Issues requested by our community wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants