This repository was archived by the owner on Sep 30, 2024. It is now read-only.
feat(sg): command to add default site-admin with predefined access token #63320
Merged
Conversation
803c1c3 to
2184f42
Compare
2184f42 to
45903e0
Compare
45903e0 to
6b216f2
Compare
jhchabran
reviewed
Jun 19, 2024
| }) | ||
| } | ||
|
|
||
| // equivalent to "8756ee46f2b54254fc52041455c2a7fda46af44a" |
Contributor
There was a problem hiding this comment.
Can't we use a more recognizable token?
Contributor
Author
There was a problem hiding this comment.
How about f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0
jhchabran
approved these changes
Jun 19, 2024
jhchabran
referenced
this pull request
Jun 19, 2024
Follow-up to https://github.com/sourcegraph/sourcegraph/pull/63320 as I noticed that the `UsageText` didn't include `sg db default-site-admin`. Additionally, it was quite verbose without providing much info, so I just dropped it in favour of highlighting notable commands.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a subcommand to
sg dbcalleddefault-site-adminthat creates a site-admin user with user:passsourcegraph:sourcegraphand a predefined hard-coded tokensgp_local_f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0Test plan
go run ./dev/sg -- db default-site-adminwith clean database" "after having run that (when everything should be set)" "when user exists but token doesntChangelog