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

[PS-2242] Quotes break adminSettings__admins #2572

Merged
merged 1 commit into from Jan 22, 2023

Conversation

danepowell
Copy link
Contributor

Type of change

- [x] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Setting up the unified server, I copied the default settings.env and changed the adminSettings__admins string to a single email address in quotes:
#adminSettings__admins="admin1@example.com"

But when trying to log into the admin panel, BW never sent me an email. Removing the quotes fixed the issue. Since this is the only example setting with quotes, I have to think that they are not supposed to be there.

Code changes

  • settings.env: Remove quotes from adminSettings__admins

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • If making database changes - make sure you also update Entity Framework queries and/or migrations
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PS-2242

@bitwarden-bot bitwarden-bot changed the title Quotes break adminSettings__admins [PS-2242] Quotes break adminSettings__admins Jan 12, 2023
@djsmith85 djsmith85 added the bw-unified-deploy An Issue related to Bitwarden unified deployment label Jan 12, 2023
@ghost ghost mentioned this pull request Jan 22, 2023
1 task
@kspearrin
Copy link
Member

I think quotes were added because of the commas and possibility of people adding spaces. How do we escape the possibility of spaces in this value?

@ghost
Copy link

ghost commented Jan 22, 2023

There is no problem using whitespace in env files/variables.
Only the admin service must handle/ignore them correctly when parsing the env variable.

@kspearrin kspearrin merged commit 266d426 into bitwarden:master Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bw-unified-deploy An Issue related to Bitwarden unified deployment community-pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants