jakeswenson / bitbetter Goto Github PK
View Code? Open in Web Editor NEWModify bit warden to provide my own licensing for self hosting
Modify bit warden to provide my own licensing for self hosting
Hi,
./build.sh failed in step 5.
Step 5/5 : RUN set -e; set -x; dotnet /bitBetter/bitBetter.dll && mv /app/Core.dll /app/Core.orig.dll && mv /app/modified.dll /app/Core.dll && rm -rf /bitBetter && rm -rf /newLicensing.cer
---> Running in bebebdbeef85
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
Everything ran fine. When going to rebuild bitwarden get the above error.
Pulling identity (bitbetter/identity:latest)...
Error: pull access denied for bitbetter/identity, repository does not exist or may require 'docker login'
hi all,
made bitwarden again this time doing it via the "Manual Docker Installations" so it doesnt need the internet to pull down the docker containers all the time
but if i make this an offline server will bitbetter still work or do i manually need to pull/save/load the bitbetter docker container?
many thanks,
rob
When I add an organization via my user account using the license generated by BitBetter the operation completes successfully but the organization does not appear linked to my user account. However, the organization does show up in the admin panel. Does anyone have any experience with this? I can offer any logs files necessary.
-deleted
Hi,
Sorry this isn't an issue but rather a question of how-to.
How would one change 'MaxStorageGb'? I have changed it in Program.cs; is that the only place to change it (and then rebuild licensegen)?
Many thanks
Hello,
When running /run.sh /opt/BitBetter/.keys/cert.pfx user [email protected] [email protected] 12345679
I get the error message at the bottom: (Similar to issue #4)
I followed the instructions and installed dotnet add package Newtonsoft.Json --version 11.0.0
before running the build.sh
What am I doing wrong?
##Oops: System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.
File name: 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Int32 attributeCtorToken, Boolean mustBeInheritable)
at Newtonsoft.Json.Serialization.DefaultContractResolver.GetSerializableMembers(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties(Type type, MemberSerialization memberSerialization)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
at bitwardenSelfLicensor.Program.GenerateUserLicense(X509Certificate2 cert, String corePath, String userName, String email, Guid userId, String key) in /opt/BitBetter/src/licenseGen/Program.cs:line 175
at bitwardenSelfLicensor.Program.<>c__DisplayClass0_1.<Main>b__6() in /opt/BitBetter/src/licenseGen/Program.cs:line 75
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at bitwardenSelfLicensor.Program.Main(String[] args) in /opt/BitBetter/src/licenseGen/Program.cs:line 137
How on earth do you find the user ID for a given user? I'm to the point of generating a user license, but it gives me a "User ID not provided" error. What obviously thing am I missing? Thanks!!
I can't install on debian 9.
Could you provide me a step by step to install?
Thanks,
Mario
hi all,
i have noticed when i create an organisation and put stuff in the vault, it saves the stuff to my own personnal vault aswell
is there anyway of stopping this from happening as a user could delete stuff in there perssonal vault and it will replicate the deletetion to the organisation aswell
thanks,
rob
So here's what I have, able to generate the Org license, imports fine and seems to unlock the features. I then go to the panel and invite a user. The user gets the email, signs up and logs in to the account, however they are not part of the org and the user was as if they just created a standalone account in the system. I can create a new org license for the user, however then they are put into their own org. It's like they just aren't connected.
It seems to be relatively easy to override Bitwarden Licencing when building from scratch and scratch builds aren't that hard either (and due to AGPL it's fine to even host self-build docker images).
See:
https://github.com/imi415/bitwarden-server/tree/communism
With a little bit of magic it could be pretty much automated (install, update etc) the same way as bitwarden does.
Isn't this a much cleaner solution than overwriting a pre-build binary?
Edit
Even if the goal is to make licencing available to self-hosted users, isn't the right way of doing so just forking the codebase?
not really an issue but I can not manage to install dotnet on my linux 18
=> so no way to test ;)
Hi,
I spotted a tiny little error in the documentation
You should replace
git clone https://github.com/online-stuff/BitBetter.git
by
git clone https://github.com/jakeswenson/BitBetter.git
Hello,
Where are we supposed to generate the self-signed certificate?
I noticed that the build.sh script copies a cert.cer from .keys directory to ./src/bitBetter/.keys but during the build it says
"mkdir: cannot create directory ‘./src/bitBetter/.keys’: File exists
cp: cannot stat '.keys/cert.cert': No such file or directory"
That's because there is what looks like a corrupt cert file in ./src/bitBetter/.keys whereas the .keys directory at the root is empty and contains a text file that says that!
Hello i get the message
root@bitwarden:/home/bitwarden# ./src/licenseGen/run.sh /cert.pfx interactive
Cant find certificate at: /cert.pfx
Usage: interactive
hi all,
im getting the below error when im running the run script to produce a license -
root@bitwarden_ubuntu:/bitwarden/bwdata/BitBetter/src/licenseGen# /bitwarden/bwdata/BitBetter/src/licenseGen/run.sh interactive
Cant find certificate at: /cert.pfx
Usage: interactive
any help would be much appreciated
thanks,
rob
Does this work on the latest version of bitwarden? I noticed that your screenshot shows an older version in docker. I've tried this in the latest version of bw and I get the invalid license error as well. Just curious-thanks
./src/licenseGen/run.sh interactive
Unable to find image 'bitbetter/licensegen:latest' locally
docker: Error response from daemon: pull access denied for bitbetter/licensegen, repository does not exist or may require 'docker login'.
See 'docker run --help'.
how do I solve this?
I did all the steps, but can't generale a license.
Regards
When applying a license I get this message. Thanks
The circle-ci checkout key seems to be incorrect, causing all circle-ci tests to fail. I think @jakeswenson is probably the only one who can fix that.
We should probably move it from README.md. I suggest to create either GitHub Wiki or files in the brackets bellow in the repo root or in the [repo_root]/docs
folder. Then, the README.md
should contain only the general information about the repository/project/program.
INSTALL.md
; cf my comment in #6)
RUN.md
)UPGRADE.md
)UNINSTALL.md
)FAQ.md
)after all of that , where do you have the file bitwarden_organization_license.json ?
Whenever I restart the identity server and login at the web interface I get this the identity pod logs this:
�[40m�[32minfo�[39m�[22m�[49m: Bit.Core.Services.LicensingService[12482444]
Validating premium license for user ********-****-****-****-************([email protected]).
�[40m�[32minfo�[39m�[22m�[49m: Bit.Core.Services.LicensingService[12482444]
User ********-****-****-****-************([email protected]) has an invalid license and premium is being disabled. Reason: Invalid signature.
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 2265.6261ms 200 application/json; charset=UTF-8
After this my premium state is obviously gone and I have to reupload my license.
I build my own api image due to the instructions.
Do I have to build a custom identity image as well?
And if yes: Are there other images I have to rewrite as well?
Running the licenseGen script interactively requests the 'username' as part of the process: 'Please provide the username this license will be registered to. [username]:' It is unclear what I should enter for a license key username.
BitWarden seems to use the email address as the user ID. The Admin panel (/admin/users/view/guid-of-user) doesn't display a username.
What should I enter for username?
---> Running in 269e73d10a6c
+ dotnet /bitBetter/bitBetter.dll
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
- The following frameworks were found:
3.1.2 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=debian.10-x64
The command '/bin/sh -c set -e; set -x; dotnet /bitBetter/bitBetter.dll && mv /app/Core.dll /app/Core.orig.dll && mv /app/modified.dll /app/Core.dll && rm -rf /bitBetter && rm -rf /newLicensing.cer' returned a non-zero code: 150
Made a backup of the keys, removed everything, pulled the git again and the problem remains. Ran a build command on 2.13.0 before upgrading and it was fine.
It just appears we need to upgrade to dotnet core 3.1, please see my pull request.
hi all,
just thought i would share as i think this project is awesome!!!!!!
#!/bin/bash
echo "please enter organisation name":
read name
echo "please enter the owners email of this organisation (user must already exist)":
read owner
echo "please enter company":
read company
read -p "continue (y/n)?" CONT
if [ "$CONT" = "y" ]; then
/bitwarden/bwdata/BitBetter/src/licenseGen/run.sh /bitwarden/bwdata/BitBetter/.keys/cert.pfx org "$name" "$owner" installation-id "$company" >> /license_files/"$name".json
echo "this is the organisational license file" | swaks --to "$owner" --from [email protected] --server smtp_relay_ip --attach-type /license_files/"$name".json
rm -f /license_files/"$name".json
else
exit
fi
rob
Everything builds fine now. I can build get the run the script but getting invalid license when I go to upload them whether its user or organization.
where do you get the user id from?
Hi,
I installed bitwarden self-host and all went fine.
I have:
Then I did
git clone https://github.com/jakeswenson/BitBetter.git
and ./build.sh but I got:
[root@xxx BitBetter]# ./build.sh
+ dotnet add package Newtonsoft.Json --version 12.0.1
Writing /tmp/tmppdM05N.tmp
info : Adding PackageReference for package 'Newtonsoft.Json' into project '/bitBetter/bitBetter.csproj'.
info : Restoring packages for /bitBetter/bitBetter.csproj...
info : GET https://api.nuget.org/v3-flatcontainer/mono.cecil/index.json
info : GET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/index.json
info : OK https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json 196ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/index.json 197ms
info : GET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/12.0.1/newtonsoft.json.12.0.1.nupkg
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/2.0.0/microsoft.netcore.app.2.0.0.nupkg
info : OK https://api.nuget.org/v3-flatcontainer/newtonsoft.json/12.0.1/newtonsoft.json.12.0.1.nupkg 18ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/2.0.0/microsoft.netcore.app.2.0.0.nupkg 18ms
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostpolicy/index.json
info : GET https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json
info : OK https://api.nuget.org/v3-flatcontainer/mono.cecil/index.json 453ms
info : GET https://api.nuget.org/v3-flatcontainer/mono.cecil/0.10.0-beta6/mono.cecil.0.10.0-beta6.nupkg
info : OK https://api.nuget.org/v3-flatcontainer/mono.cecil/0.10.0-beta6/mono.cecil.0.10.0-beta6.nupkg 18ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostpolicy/index.json 127ms
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostpolicy/2.0.0/microsoft.netcore.dotnethostpolicy.2.0.0.nupkg
info : OK https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json 128ms
info : GET https://api.nuget.org/v3-flatcontainer/netstandard.library/2.0.0/netstandard.library.2.0.0.nupkg
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostpolicy/2.0.0/microsoft.netcore.dotnethostpolicy.2.0.0.nupkg 20ms
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : OK https://api.nuget.org/v3-flatcontainer/netstandard.library/2.0.0/netstandard.library.2.0.0.nupkg 21ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json 127ms
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/2.0.0/microsoft.netcore.dotnethostresolver.2.0.0.nupkg
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/2.0.0/microsoft.netcore.dotnethostresolver.2.0.0.nupkg 17ms
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnetapphost/index.json
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnetapphost/index.json 127ms
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnetapphost/2.0.0/microsoft.netcore.dotnetapphost.2.0.0.nupkg
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnetapphost/2.0.0/microsoft.netcore.dotnetapphost.2.0.0.nupkg 17ms
info : Installing Microsoft.NETCore.DotNetAppHost 2.0.0.
info : Installing Microsoft.NETCore.DotNetHostResolver 2.0.0.
info : Installing Microsoft.NETCore.DotNetHostPolicy 2.0.0.
info : Installing NETStandard.Library 2.0.0.
info : Installing Microsoft.NETCore.App 2.0.0.
info : Installing Mono.Cecil 0.10.0-beta6.
info : Installing Newtonsoft.Json 12.0.1.
info : Package 'Newtonsoft.Json' is compatible with all the specified frameworks in project '/bitBetter/bitBetter.csproj'.
info : PackageReference for package 'Newtonsoft.Json' version '12.0.1' updated in file '/bitBetter/bitBetter.csproj'.
info : Committing restore...
info : Assets file has not changed. Skipping assets file writing. Path: /bitBetter/obj/project.assets.json
log : Restore completed in 6.08 sec for /bitBetter/bitBetter.csproj.
+ dotnet restore
Restore completed in 59.99 ms for /bitBetter/bitBetter.csproj.
+ dotnet publish
Microsoft (R) Build Engine version 16.2.37902+b5aaefc9f for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 59.24 ms for /bitBetter/bitBetter.csproj.
bitBetter -> /bitBetter/bin/Debug/netcoreapp2.0/bitBetter.dll
bitBetter -> /bitBetter/bin/Debug/netcoreapp2.0/publish/
Sending build context to Docker daemon 1.47 MB
Step 1/5 : ARG BITWARDEN_TAG
Please provide a source image with `from` prior to commit
Sending build context to Docker daemon 1.47 MB
Step 1/5 : ARG BITWARDEN_TAG
Please provide a source image with `from` prior to commit`
FYI, I don't have any bitbetter image after that:
[root@xxx ~]# docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/certbot/certbot latest 058bbcb454ed 13 days ago 157 MB
mcr.microsoft.com/dotnet/core/sdk 2.1 f6b12daf495b 2 weeks ago 1.74 GB
docker.io/bitwarden/web 2.12.0 d9cb8eae5562 5 months ago 308 MB
docker.io/bitwarden/setup 1.32.0 da65b2fb2aed 5 months ago 223 MB
docker.io/bitwarden/mssql 1.32.0 d92a09dce472 5 months ago 1.39 GB
docker.io/bitwarden/admin 1.32.0 4d158aa7d9d1 5 months ago 298 MB
docker.io/bitwarden/events 1.32.0 abb2acd7bc0b 5 months ago 321 MB
docker.io/bitwarden/notifications 1.32.0 eb43e98b4135 5 months ago 289 MB
docker.io/bitwarden/icons 1.32.0 53b8984377c7 5 months ago 323 MB
docker.io/bitwarden/attachments 1.32.0 51e7de910b78 5 months ago 297 MB
docker.io/bitwarden/nginx 1.32.0 882998aaf5b7 5 months ago 133 MB
docker.io/bitwarden/identity 1.32.0 a4ca753ee423 5 months ago 321 MB
docker.io/bitwarden/api 1.32.0 85fd381456cf 5 months ago 331 MB
Can you support me please? Thanks.
Followed the instructions using the auto build script and also tried creating my own cert.
Api container seems to run fine but my Identity container just keeps restarting with the below error:
Parameter name: certificate at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderExtensionsCrypto.AddSigningCredential(IIdentityServerBuilder builder, X509Certificate2 certificate) at Bit.Core.Utilities.ServiceCollectionExtensions.AddCustomIdentityServerServices(IServiceCollection services, IHostingEnvironment env, GlobalSettings globalSettings) at Bit.Identity.Startup.ConfigureServices(IServiceCollection services) in /home/appveyor/projects/server/src/Identity/Startup.cs:line 61 --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services) at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices() at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize() at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() at Bit.Identity.Program.Main(String[] args) in /home/appveyor/projects/server/src/Identity/Program.cs:line 13
Running Bitwarden using Docker on Synology DSM 6.2 (Xpenology)
Any help would be appreciated 😊
hi all,
so ive installed the net framework 3.1 using this how to guide
https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1804
but when i build bitbetter i get this error message
but when i check my version i have 3.1
root@lon-c-bw:/bitwarden/bwdata/BitBetter# dotnet --version
3.1.201
am i missing something here?
thanks,
rob
Alright..
Started again on fresh/clean Debian Stretch system.
I am running ~/BitBetter/build.sh
I am getting this error at the end of the output.
modified dll
cp: cannot create regular file '/jobs/Core.dll': No such file or directory
The command '/bin/sh -c dotnet /bitBetter/bitBetter.dll && echo "modified dll" && mv /app/Core.dll /app/Core.orig.dll && mv /app/modified.dll /app/Core.dll && cp -f /app/Core.dll /jobs/Core.dll && echo "replaced dll" && rm -rf /bitBetter && rm -rf /newLicensing.cer && echo "cleaned up"' returned a non-zero code: 1
I have kept track of every command I have entered.. Hopefully when I have this working we can make a better install manual... ;)
I have tryed but
root@security:~/dotnet# dotnet add package Newtonsoft.Json --version 11.0.0
Could not find any project in /root/dotnet/
.
Usage: dotnet add package [options] <PACKAGE_NAME>
hi all,
so i had to make a new ubuntu server and i did a fresh install of bitwarden and bitbetter again but i installed bitbetter and then/after i copied over all my bwdata dir including bitbetter and i think i have buggered it up as i can make organisations but the website is saying "invalid license"
do you think i should delete the bitbetter dir in my bwdata and start the install again?
many thanks,
rob
Is anyone seeing the below error, despite installing .NET 3.1?
Step 5/5 : RUN set -e; set -x; dotnet /bitBetter/bitBetter.dll && mv /app/Core.dll /app/Core.orig.dll && mv /app/modified.dll /app/Core.dll && rm -rf /bitBetter && rm -rf /newLicensing.cer
---> Running in 005bb3d546de
+ dotnet /bitBetter/bitBetter.dll
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
- Check application dependencies and target a framework version installed at:
/usr/share/dotnet/
- Installing .NET Core prerequisites might help resolve this problem:
https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
2.2.6 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Step 5/5 : RUN set -e; set -x; dotnet /bitBetter/bitBetter.dll && mv /app/Core.dll /app/Core.orig.dll && mv /app/modified.dll /app/Core.dll && rm -rf /bitBetter && rm -rf /newLicensing.cer
---> Running in 853e21484be1
+ dotnet /bitBetter/bitBetter.dll
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
- Check application dependencies and target a framework version installed at:
/usr/share/dotnet/
- Installing .NET Core prerequisites might help resolve this problem:
https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
2.2.6 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
In /usr/share/dotnet/shared/Microsoft.NETCore.App/ I only have 3.1.3 (/usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.3/), so it's a little bizzare.
Running Ubuntu 18.04.4 LTS
The only dotnet packages installed on this system are:
aspnetcore-runtime-3.1 aspnetcore-targeting-pack-3.1 dotnet-apphost-pack-3.1 dotnet-host dotnet-hostfxr-3.1 dotnet-runtime-3.1 dotnet-runtime-deps-3.1 dotnet-sdk-3.1 dotnet-targeting-pack-3.1,
and also: netstandard-targeting-pack-2.1
hi all,
i have read you cant enforce 2FA on normal bitwarden installations as its greyed out but as i have installed bitbetter i now have the option as i imagine i have the enterprise one or custom version?
is this possible to do now?
thanks,
rob
Hi all,
How many users can I add to an organisation, is it unlimited?
Thanks,
rob
Hi,
This is a very superficial and cosmetic request but would make things neater.
Would it be possible to change the hard coded "BitBetter" under business name to something custom like your family name etc?
Delete
I'm going to try and sit down and update & consolidate the documentation/Readme. I think a well-written Readme with prerequisites and installation details will be worth the effort.
I'll probably break it into sections with Table of Contents to make it easy to navigate for anyone viewing it via Github or a markdown reader.
If there are any particular thoughts, ideas or concerns regarding this please let me know.
Hi. First of all, thanks for your work.
Unfortunately, i have faced with problem - i have done all actions according to instruction. Compose was changed, identity, api succesfully builded - i saw other issues and double checked it. I succesful run licenseGen/run.sh, provided all information including installation_id from env
i got generated license file.
But this file is not accepted by my self-hosted application. I'm trying to get premium and upload license json - it says that "version 4 is not supported", or if i'm truing to make organization, it says "invalid license".
I am stuck.
Here is the error from Docker
Unhandled Exception: Interop+Crypto+OpenSslCryptographicException: error:23076071:PKCS12 routines:PKCS12_parse:mac verify failure
at Internal.Cryptography.Pal.OpenSslPkcs12Reader.Decrypt(SafePasswordHandle password)
at Internal.Cryptography.Pal.PkcsFormatReader.TryReadPkcs12(OpenSslPkcs12Reader pfx, SafePasswordHandle password, Boolean single, ICertificatePal& readPal, List`1& readCerts)
at Internal.Cryptography.Pal.PkcsFormatReader.TryReadPkcs12(SafeBioHandle bio, SafePasswordHandle password, Boolean single, ICertificatePal& readPal, List`1& readCerts, Exception& openSslException)
at Internal.Cryptography.Pal.CertificatePal.FromBio(SafeBioHandle bio, SafePasswordHandle password)
at Internal.Cryptography.Pal.CertificatePal.FromFile(String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
at Bit.Core.Utilities.ServiceCollectionExtensions.AddCustomIdentityServerServices(IServiceCollection services, IHostingEnvironment env, GlobalSettings globalSettings)
at Bit.Identity.Startup.ConfigureServices(IServiceCollection services) in /home/appveyor/projects/server/src/Identity/Startup.cs:line 61
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Bit.Identity.Program.Main(String[] args) in /home/appveyor/projects/server/src/Identity/Program.cs:line 10
Following the instructions in README.md
allows me to successfully generate a PFX, build the bitwarden/api:latest
image and the bitbetter/licensegen:latest
image.
However, attempting to run the generator with:
./src/licenseGen/run.sh /absolute/path/to/cert.pfx
Will return the help text from the license generator (not from the run script):
Usage: [options] [command]
Options:
--cert cert file
--core path to core dll
-? | -h | --help Show help information
Commands:
org
user
Use " [command] --help" for more information about a command.
The documentation on the org and user command don't appear to be complete and I'm unable to get it to return a license.
hi all,
i have installed bitwarden and its great but now i want to set up organisations
i have come accross this
https://github.com/jakeswenson/BitBetter
but im struggling to do it, i am running this command below in my "/bitwarden/bwdata/"
git clone https://github.com/jakeswenson/BitBetter.git
its made it here " /bitwarden/bwdata/BitBetter"
then i run the script
./build.sh
then i edit my file like it says ie
Replace image: bitwarden/api:x.xx.x
with image: bitbetter/api
Replace image: bitwarden/identity:x.xx.x
with image: bitbetter/identity
but when i restart bitwarden it throughs an error -
Trying to pull repository docker.io/bitbetter/api ...
ERROR: repository docker.io/bitbetter/api not found: does not exist or no pull access
so obviously i havnt saved it in the right directory
can anyone help me out please
thanks,
rob
In pursuit of a more streamlined user experience, I think it's worthwhile to give the license generator an interactive mode of operation.
Similar to how openssl operates when generating a key, it can ask for for the requisite details and offer reasonable defaults where applicable (business name for org licenses).
Something along the lines of:
$ What would you like to generate, a [u]ser license or an [o]rg license?
$ Enter your selection, default is [u]ser license:
$ o
$ Please enter a business name for the org license, default is [BitBetter]:
$ MyCompany
$ Please enter the Install-ID used to install the server:
I'm thinking that the parameters -i
and --interactive
would be used for this mode, with the existing operation being unchanged.
Hello Jake,
I'm unable to locate your bitbetter/api. Can you place it on dockerhub again please?
Thanks,
Hello guys,
There is paragraph in the documentation referring to modifying a run.sh file. I've downloaded the latest release of bitwarden and there doesn't seem to be a scripts directory.
You'll also want to edit the /path/to/bwdata/scripts/run.sh file. In the function restart() block, comment out the call to dockerComposePull.
Replace dockerComposePull
with #dockerComposePull
hi all,
im trying a manual installation of bitwarden here (right at the bottom of the how to)
https://help.bitwarden.com/article/install-on-premise/
but when i do a ls of bwdata i cant find the scripts dir
ls /bwdata/
BitBetter ca-certificates core docker env identity letsencrypt logs mssql nginx ssl web
thanks,
rob
Hello,
Are there any specific instructions for updating Bitwarden while using BitBetter?
running ./bitwarden.sh update will not update the images as the config.yml file is modified to not regenerate the docker-compose.yml as part of the BitBetter installation.
Also, is it possible to modify the docker paramters by using docker-compose.override.yml instead of modifying the main docker-compose.yml file? so that the api and identity images use BitBetter instead of Bitwarden's?
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.