Comments (8)
We had to remove the "easy" method of user addition due to some kubernetes/openshift constraints about our indexer container.
Anyway, to get a mongo shell, run docker exec -it ca-mongo mongo
and use camic
to get into the right database.
from distro.
It looks like I have some documentation to update.
The format for users in mongo is like
{
"_id" : ObjectId("63a35103811aa405ae1e73a2"),
"email" : "[email protected]",
"userType" : "Admin",
"userFilter" : "['**']"
}
You can add a user directly to mongo, or alternatively temporary disable security and go to /apps/signup/signup.html to add a user there.
If you're getting an issue from google itself, please let me know.
from distro.
Thank you for your fast response.
Unfortunately, I do not know how to access mongo (within the docker container) and how to add then a user.
And the other user adding version from the documentation (with the adduser.json) does not work since there is no such file, and I do not know where to place it.
from distro.
I added user according to the query given above but I am not able to login. Could you please suggest any solution to this? @birm
from distro.
I neglected to mention the easiest way to add a user; either run develop.yml or disable security (temporarily or otherwise; see the environment variable in develop.yml under caracal) then simply add the user using the user sign up page (/apps/signup/signup.html)
The email should match the email from a google id token.
from distro.
Thank you very much for your suggestions.
The version with the development.yml file works. But allowing everybody to add a user etc. does not seems fine to me.
Therefore, a more secure solution seems to be mandatory.
However, the other mentioned methods do not work for me:
#1 I can access the mongo database, but I have no clue how to add a user there. With db.addUser and your suggestions above, it does not work.
#2 I do not know how to disable the security temporarily. I am sorry.
Maybe the question at psankhe28: How did you add a user?
from distro.
Thank you very much for your suggestions. The version with the development.yml file works. But allowing everybody to add a user etc. does not seems fine to me. Therefore, a more secure solution seems to be mandatory.
However, the other mentioned methods do not work for me: #1 I can access the mongo database, but I have no clue how to add a user there. With db.addUser and your suggestions above, it does not work. #2 I do not know how to disable the security temporarily. I am sorry.
Maybe the question at psankhe28: How did you add a user?
I tried by adding the user directly in mongo database. But its not working. Have you found any solution to this? @catweis
from distro.
Hi! I am Tingyuan (Leon).
Thank you for previous discussion, it inspired me a lot.
By running develop.yml
, I successfully sign up a temporary account.
I also tried the other two potential methods, however, as @catweis said, they do not work.
The followings are my tries on these two methods:
- For the way of manually adding account in mongo database, I successfully added a new account data in the local database called 'camic'. But no matter how I restart or rebuild the service, it still shows that "User not added".
- For the way of temporarily disabling security check, I did not found
develop.yml
underCaracal
, but I did found there were config related with security check in.env
file that was copied and renamed from.env.example
.
I tried modifying both DISABLE_SEC
and ALLOW_PUBLIC
to value of true
, and made sure configs in .env
were run by re-executing setup_script.sh
under Caracal
, but it still did not worked.
In short, for now, it seems like running develop.yml
is the only way to access the system.
I know it is very likely that there is something wrong with my operations, so I will be extremely happy if anyone could point me in the right direction! Thank you so much!
from distro.
Related Issues (20)
- Travis has Issues with Docker and rate limits
- Docker compose fails since additional_links.json file was deleted HOT 1
- Key Generation Portability HOT 1
- Upgrade Google Signon
- Automatic Docker Image Builds on Github HOT 2
- Kubernetes Config HOT 2
- JsonWebTokenError - Issue using Secret Key HOT 1
- A service can not depend on itself HOT 1
- Installation of distro with docker compose fails HOT 5
- Seeking for further discussion on adding user in local environment.
- docker-compose -f caMicroscope.yml up command failed to run HOT 8
- Error while uploading a svs file HOT 16
- ca-iip restarting and exitting in a loop, trying to change ownership HOT 2
- GHCR reporting a permission error on pull for public images HOT 1
- Issue with unencoded filepaths for IIP HOT 1
- Issue with file develop.yml HOT 1
- Got Errors on Running Docker Compose Up HOT 2
- Add a messaging bot to keep track of recent meetings with notifications
- Keep up to date with mongo container version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distro.