Skip to content

Commit e2ebbce

Browse files
committed
Use "twelve" as the password where "twelve12" was used
1 parent c3febc9 commit e2ebbce

File tree

24 files changed

+31
-31
lines changed

24 files changed

+31
-31
lines changed

.github/actions/to-api-contract-tests/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ truncate --size=0 traffic.ops.log # Removes output from previous API versions an
122122

123123
cd "../testing/api_contract/v$INPUT_VERSION"
124124

125-
pytest -rA --to-user admin --to-password twelve12 --to-url https://localhost:6443/api/4.0
125+
pytest -rA --to-user admin --to-password twelve --to-url https://localhost:6443/api/4.0

dev/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ self-signed certificate, so `curl` commands to the API will need to use
3232
debugger for Go listens on port 6444 for connections to debug Traffic Ops.
3333

3434
The login credentials for the "admin" user are the same as those for the user of
35-
the same name in CDN-in-a-Box - password is `twelve12`.
35+
the same name in CDN-in-a-Box - password is `twelve`.
3636

3737
## Traffic Portal
3838
The current version of Traffic Portal serves using HTTPS on port 444. The
@@ -60,9 +60,9 @@ for running Postgres, so any Postgres servers running on the host machine may
6060
need to be stopped before running ATC) and houses the Traffic Ops database as
6161
`traffic_ops_development`, and the Traffic Vault database as
6262
`traffic_vault_development`. To connect as the Traffic Ops user to the Traffic
63-
Ops database, use the username `traffic_ops` and the password `twelve12`. To
63+
Ops database, use the username `traffic_ops` and the password `twelve`. To
6464
connect as the Traffic Ops Vault user to the Traffic Vault database, use the
65-
username `traffic_vault` and the password `twelve12`.
65+
username `traffic_vault` and the password `twelve`.
6666

6767
## T3C
6868
An edge-tier cache server listens for HTTP (HTTPS not supported) connections on

dev/atc.dev.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ function tm-health-client {
177177

178178
export TO_URL="https://localhost:6443"
179179
export TO_USER="admin"
180-
export TO_PASSWORD="twelve12"
180+
export TO_PASSWORD="twelve"

dev/traffic_monitor/ops.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"username": "admin",
3-
"password": "twelve12",
3+
"password": "twelve",
44
"url": "https://trafficops:443/",
55
"insecure": true,
66
"cdnName": "dev",

dev/traffic_ops/.pgpass

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
db:5432:postgres:postgres:twelve12
17+
db:5432:postgres:postgres:twelve

dev/traffic_ops/cdn.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"query_timeout_seconds": 86400,
2020
"hostname": "db",
2121
"user": "traffic_vault",
22-
"password": "twelve12",
22+
"password": "twelve",
2323
"port": 5432
2424
},
2525
"read_timeout": 86400,

dev/traffic_ops/db.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"dbname": "traffic_ops_development",
44
"hostname": "db",
55
"user": "traffic_ops",
6-
"password": "twelve12",
6+
"password": "twelve",
77
"port": "5432",
88
"ssl": false,
99
"type": "Pg"

dev/traffic_ops/dbconf.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ name: dbconf.yml
1818

1919
development:
2020
driver: postgres
21-
open: host=db port=5432 user=traffic_ops password=twelve12 dbname=traffic_ops_development sslmode=disable
21+
open: host=db port=5432 user=traffic_ops password=twelve dbname=traffic_ops_development sslmode=disable

dev/traffic_ops/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ db_init() {
3636
"$ADMIN" -v -c ./traffic.vault.dbconf.yml -s "$TC/traffic_ops/app/db/trafficvault/create_tables.sql" -m "$TC/traffic_ops/app/db/trafficvault/migrations" reset
3737
"$ADMIN" -v -c ./traffic.vault.dbconf.yml -s "$TC/traffic_ops/app/db/trafficvault/create_tables.sql" -m "$TC/traffic_ops/app/db/trafficvault/migrations" upgrade
3838

39-
psql -d 'postgres://traffic_ops:twelve12@db:5432/traffic_ops_development?sslmode=disable' -f ./seed.psql
39+
psql -d 'postgres://traffic_ops:twelve@db:5432/traffic_ops_development?sslmode=disable' -f ./seed.psql
4040
)
4141
}
4242

dev/traffic_ops/seed.psql

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ INSERT INTO tm_user (
2323
'admin',
2424
(SELECT id FROM tenant WHERE "name" = 'root'),
2525
(SELECT id FROM "role" WHERE "name" = 'admin'),
26-
-- 'twelve12' encrypted with SCRYPT
26+
-- 'twelve' encrypted with SCRYPT
2727
'SCRYPT:16384:8:1:p0Bppp/6IBeYxSwdLuYddsdMLBU/BNSlLY6fSIF7H1XW4eTbNVeMPVm7TuTEG4FM8PbqLlVwi8sPy8ZJznAlaQ==:sRcHWGe43mm/uEmXTIw37GcLEQZTlWAdf4vJqK8f0MDh8P+8gXoNx+nxWyb3r/0Bh+yyg0g/dUvti/ePZJL+Jw==',
2828
'SCRYPT:16384:8:1:p0Bppp/6IBeYxSwdLuYddsdMLBU/BNSlLY6fSIF7H1XW4eTbNVeMPVm7TuTEG4FM8PbqLlVwi8sPy8ZJznAlaQ==:sRcHWGe43mm/uEmXTIw37GcLEQZTlWAdf4vJqK8f0MDh8P+8gXoNx+nxWyb3r/0Bh+yyg0g/dUvti/ePZJL+Jw==',
2929

dev/traffic_ops/traffic.vault.dbconf.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ name: traffic.vault.dbconf.yml
1818

1919
development:
2020
driver: postgres
21-
open: host=db port=5432 user=traffic_vault password=twelve12 dbname=traffic_vault_development sslmode=disable
21+
open: host=db port=5432 user=traffic_vault password=twelve dbname=traffic_vault_development sslmode=disable

dev/traffic_router/conf/traffic_ops.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212
traffic_ops.username=admin
13-
traffic_ops.password=twelve12
13+
traffic_ops.password=twelve

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ services:
4343
ports:
4444
- 5432:5432
4545
environment:
46-
- POSTGRES_PASSWORD=twelve12
46+
- POSTGRES_PASSWORD=twelve
4747
hostname: db
4848
networks:
4949
- ciab

docs/source/development/debugging.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Wait for Traffic Monitor to start, which will indicate that the SSL keys have be
136136
.. code-block:: shell
137137
:caption: Run ``t3c-apply`` with debugging enabled
138138
139-
[user@computer cdn-in-a-box]$ mydc exec edge t3c apply --run-mode=badass --traffic-ops-url=https://trafficops.infra.ciab.test --traffic-ops-user=admin --traffic-ops-password=twelve12 --git=yes --dispersion=0 --log-location-error=stdout --log-location-warning=stdout --log-location-info=stdout all
139+
[user@computer cdn-in-a-box]$ mydc exec edge t3c apply --run-mode=badass --traffic-ops-url=https://trafficops.infra.ciab.test --traffic-ops-user=admin --traffic-ops-password=twelve --git=yes --dispersion=0 --log-location-error=stdout --log-location-warning=stdout --log-location-info=stdout all
140140
API server listening at: [::]:2347
141141
142142
The *API server listening* message is from ``dlv``, indicating it is ready to accept a connection from your IDE. Note that, unlike the other components, execution of ``t3c`` does not begin until your IDE connects to ``dlv``.
@@ -203,7 +203,7 @@ Wait for Traffic Monitor to start, which will indicate that the SSL keys have be
203203
.. code-block:: shell
204204
:caption: Run ``t3c-apply`` with debugging enabled
205205
206-
[user@computer cdn-in-a-box]$ mydc exec mid-01 t3c apply --run-mode=badass --traffic-ops-url=https://trafficops.infra.ciab.test --traffic-ops-user=admin --traffic-ops-password=twelve12 --git=yes --dispersion=0 --log-location-error=stdout --log-location-warning=stdout --log-location-info=stdout all
206+
[user@computer cdn-in-a-box]$ mydc exec mid-01 t3c apply --run-mode=badass --traffic-ops-url=https://trafficops.infra.ciab.test --traffic-ops-user=admin --traffic-ops-password=twelve --git=yes --dispersion=0 --log-location-error=stdout --log-location-warning=stdout --log-location-info=stdout all
207207
API server listening at: [::]:2348
208208
209209
The *API server listening* message is from ``dlv``, indicating it is ready to accept a connection from your IDE. Note that, unlike the other components, execution of ``t3c`` does not begin until your IDE connects to ``dlv``.
@@ -270,7 +270,7 @@ Wait for Traffic Monitor to start, which will indicate that the SSL keys have be
270270
.. code-block:: shell
271271
:caption: Run ``t3c-apply`` with debugging enabled
272272
273-
[user@computer cdn-in-a-box]$ mydc exec mid-02 t3c apply --run-mode=badass --traffic-ops-url=https://trafficops.infra.ciab.test --traffic-ops-user=admin --traffic-ops-password=twelve12 --git=yes --dispersion=0 --log-location-error=stdout --log-location-warning=stdout --log-location-info=stdout all
273+
[user@computer cdn-in-a-box]$ mydc exec mid-02 t3c apply --run-mode=badass --traffic-ops-url=https://trafficops.infra.ciab.test --traffic-ops-user=admin --traffic-ops-password=twelve --git=yes --dispersion=0 --log-location-error=stdout --log-location-warning=stdout --log-location-info=stdout all
274274
API server listening at: [::]:2349
275275
276276
The *API server listening* message is from ``dlv``, indicating it is ready to accept a connection from your IDE. Note that, unlike the other components, execution of ``t3c`` does not begin until your IDE connects to ``dlv``.

experimental/traffic-portal/nightwatch/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"adminPass": "twelve12",
2+
"adminPass": "twelve",
33
"adminUser": "admin",
44
"disableColors": false,
55
"retryAssertionTimeoutMS": 5000,

experimental/traffic-portal/src/app/api/testing/user.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class UserService {
4848
private lastID = 0;
4949

5050
private testAdminUsername = "test-admin";
51-
private readonly testAdminPassword = "twelve12!";
51+
private readonly testAdminPassword = "twelve!";
5252
private readonly users: Array<ResponseUser> = [
5353
{
5454
addressLine1: null,

experimental/traffic-portal/src/app/login/login.component.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ describe("LoginComponent", () => {
3434

3535
beforeEach(() => {
3636
mockCurrentUserService = jasmine.createSpyObj(["updateCurrentUser", "login", "logout"]);
37-
mockCurrentUserService.login.and.callFake(async (u, p)=>u === "test-admin" && p === "twelve12!");
37+
mockCurrentUserService.login.and.callFake(async (u, p)=>u === "test-admin" && p === "twelve!");
3838
mockCurrentUserService.login.withArgs("tok").and.returnValue(new Promise(r=>r(true)));
3939
mockCurrentUserService.login.withArgs("badToken").and.callFake(
4040
async () => {
4141
throw new Error("bad token");
4242
}
4343
);
44-
mockCurrentUserService.login.withArgs("server error", "twelve12!").and.callFake(
44+
mockCurrentUserService.login.withArgs("server error", "twelve!").and.callFake(
4545
async () => {
4646
throw new Error("some kind of server error occurred");
4747
}
@@ -91,7 +91,7 @@ describe("LoginComponent", () => {
9191
await expectAsync(component.submitLogin()).toBeRejected();
9292
expect(mockCurrentUserService.login).not.toHaveBeenCalled();
9393
component.u = "test-admin";
94-
component.p = "twelve12!";
94+
component.p = "twelve!";
9595
component.submitLogin();
9696
expect(mockCurrentUserService.login).toHaveBeenCalled();
9797
component.u = "server error";

experimental/traffic-portal/src/app/shared/current-user/current-user.service.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ describe("CurrentUserService", () => {
227227
});
228228

229229
it("logs users in", async () => {
230-
expect(await service.login("test-admin", "twelve12!")).toBeTrue();
230+
expect(await service.login("test-admin", "twelve!")).toBeTrue();
231231
expect(await service.login("test-admin", "a misspelled password")).toBeFalse();
232232
expect(await service.login("there's no token that includes apostrophes")).toBeFalse();
233233
});

experimental/traffic-portal/src/app/shared/current-user/current-user.testing-service.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ import { LoggingService } from "../logging.service";
2222
*
2323
* The authenticated user it "manages" is perpetually authenticated, but logging
2424
* in can fail - it expects the credentials to match the existing currentUser's
25-
* username with the password 'twelve12!' (determined by the static 'PASSWORD'
25+
* username with the password 'twelve!' (determined by the static 'PASSWORD'
2626
* property of the service).
2727
*/
2828
@Injectable()
2929
export class CurrentUserTestingService {
3030
public static readonly ADMIN_ROLE = "admin";
31-
public static readonly PASSWORD = "twelve12!";
31+
public static readonly PASSWORD = "twelve!";
3232
public userChanged = new EventEmitter<ResponseCurrentUser>();
3333
public currentUser: ResponseCurrentUser = {
3434
addressLine1: null,

infrastructure/cdn-in-a-box/health/to-creds

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020

2121
export TO_URL="https://trafficops.infra.ciab.test:443"
2222
export TO_USER="admin"
23-
export TO_PASS="twelve12"
23+
export TO_PASS="twelve"

infrastructure/cdn-in-a-box/variables.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ TM_LOG_WARNING=stdout
8080
TM_LOG_INFO=stdout
8181
TM_LOG_DEBUG=stdout
8282
TCH_HOST=tchealthclient
83-
TO_ADMIN_PASSWORD=twelve12
83+
TO_ADMIN_PASSWORD=twelve
8484
TO_ADMIN_USER=admin
8585
TO_ADMIN_FULL_NAME='Fabi Dias'
8686
# Set ENROLLER_DEBUG_ENABLE to true`to debug the enroller with Delve

traffic_ops/testing/api/conf/traffic-ops-test.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"dbname": "traffic_ops_development",
3232
"description": "dev database traffic_ops_development",
3333
"hostname": "localhost",
34-
"password": "twelve12",
34+
"password": "twelve",
3535
"port": "5432",
3636
"type": "Pg",
3737
"user": "traffic_ops"

traffic_ops/testing/api_contract/v4/data/to_data.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"user": "admin",
3-
"password": "twelve12",
3+
"password": "twelve",
44
"url": "https://localhost/api/4.0",
55
"port": 443,
66
"db_name":"traffic_ops",

traffic_portal/test/integration/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"baseUrl": "https://localhost",
3434
"login": {
3535
"username": "admin",
36-
"password": "twelve12"
36+
"password": "twelve"
3737
},
3838
"junitReporter": false
3939
}

0 commit comments

Comments
 (0)