-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from RocketChat/username-prefix
SRE-351 - Add option to add a prefix to each generated access request username (and remove extra unneeded production-aio related stuff)
- Loading branch information
Showing
12 changed files
with
46 additions
and
635 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
# Ignore build and test binaries. | ||
testbin/ | ||
*.ignore |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ test_replicaset.txt | |
mongoValues.yaml | ||
db-secret.yaml | ||
db-cluster.yaml | ||
*.ignore |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,27 @@ kind: MongoDBCluster | |
metadata: | ||
name: teste-atlas1 | ||
spec: | ||
useAtlasApi: true | ||
# The host with port that clients will receive when requesting credentials. | ||
hostTemplate: "cluster0.vpz0mct.mongodb.net" | ||
|
||
# Secret in which Airlock will look for a ConnectionString or Atlas credentials, that will be used to connect to the cluster. | ||
connectionSecret: airlock-atlas-connection | ||
|
||
# Optional. If this is set, Atlas API will be used instead of the regular mongo auth path. | ||
useAtlasApi: true | ||
|
||
# Optional. Extra connection string parameters that will be added to the connection string. | ||
optionsTemplate: ?retryWrites=true&w=majority | ||
|
||
# Optional. The prefix used when building the connection string. Defaults to "mongodb" | ||
prefixTemplate: mongodb+srv | ||
connectionSecret: airlock-atlas-connection | ||
|
||
# Optional. Namespace where the connection secret is located. Defaults to "airlock-system" | ||
connectionSecretNamespace: airlock-system | ||
|
||
# Optional. Append this prefix to all default/generated usernames for this cluster. Will be ignored if "username" is already set on the access request. | ||
userNamePrefix: test-use1- | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
|
@@ -28,6 +43,7 @@ metadata: | |
namespace: airlock-system | ||
type: Opaque | ||
stringData: | ||
# It should have enough privileges to manage users and access. This is not gonna be used by the created users. | ||
connectionString: "mongodb://rcadmin:[email protected]/test?replicaSet=rs0" | ||
|
||
--- | ||
|
This file contains 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
Oops, something went wrong.