Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/to-api-contract-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ truncate --size=0 traffic.ops.log # Removes output from previous API versions an

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

pytest -rA --to-user admin --to-password twelve12 --to-url https://localhost:6443/api/4.0
pytest -rA --to-user admin --to-password twelve --to-url https://localhost:6443/api/4.0
6 changes: 3 additions & 3 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ self-signed certificate, so `curl` commands to the API will need to use
debugger for Go listens on port 6444 for connections to debug Traffic Ops.

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

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

## T3C
An edge-tier cache server listens for HTTP (HTTPS not supported) connections on
Expand Down
2 changes: 1 addition & 1 deletion dev/atc.dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ function tm-health-client {

export TO_URL="https://localhost:6443"
export TO_USER="admin"
export TO_PASSWORD="twelve12"
export TO_PASSWORD="twelve"
2 changes: 1 addition & 1 deletion dev/traffic_monitor/ops.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"username": "admin",
"password": "twelve12",
"password": "twelve",
"url": "https://trafficops:443/",
"insecure": true,
"cdnName": "dev",
Expand Down
2 changes: 1 addition & 1 deletion dev/traffic_ops/.pgpass
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
db:5432:postgres:postgres:twelve12
db:5432:postgres:postgres:twelve
2 changes: 1 addition & 1 deletion dev/traffic_ops/cdn.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"query_timeout_seconds": 86400,
"hostname": "db",
"user": "traffic_vault",
"password": "twelve12",
"password": "twelve",
"port": 5432
},
"read_timeout": 86400,
Expand Down
2 changes: 1 addition & 1 deletion dev/traffic_ops/db.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dbname": "traffic_ops_development",
"hostname": "db",
"user": "traffic_ops",
"password": "twelve12",
"password": "twelve",
"port": "5432",
"ssl": false,
"type": "Pg"
Expand Down
2 changes: 1 addition & 1 deletion dev/traffic_ops/dbconf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ name: dbconf.yml

development:
driver: postgres
open: host=db port=5432 user=traffic_ops password=twelve12 dbname=traffic_ops_development sslmode=disable
open: host=db port=5432 user=traffic_ops password=twelve dbname=traffic_ops_development sslmode=disable
2 changes: 1 addition & 1 deletion dev/traffic_ops/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ db_init() {
"$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
"$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

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

Expand Down
2 changes: 1 addition & 1 deletion dev/traffic_ops/seed.psql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ INSERT INTO tm_user (
'admin',
(SELECT id FROM tenant WHERE "name" = 'root'),
(SELECT id FROM "role" WHERE "name" = 'admin'),
-- 'twelve12' encrypted with SCRYPT
-- 'twelve' encrypted with SCRYPT
'SCRYPT:16384:8:1:p0Bppp/6IBeYxSwdLuYddsdMLBU/BNSlLY6fSIF7H1XW4eTbNVeMPVm7TuTEG4FM8PbqLlVwi8sPy8ZJznAlaQ==:sRcHWGe43mm/uEmXTIw37GcLEQZTlWAdf4vJqK8f0MDh8P+8gXoNx+nxWyb3r/0Bh+yyg0g/dUvti/ePZJL+Jw==',
'SCRYPT:16384:8:1:p0Bppp/6IBeYxSwdLuYddsdMLBU/BNSlLY6fSIF7H1XW4eTbNVeMPVm7TuTEG4FM8PbqLlVwi8sPy8ZJznAlaQ==:sRcHWGe43mm/uEmXTIw37GcLEQZTlWAdf4vJqK8f0MDh8P+8gXoNx+nxWyb3r/0Bh+yyg0g/dUvti/ePZJL+Jw==',
'admin@no-reply.atc.test',
Expand Down
2 changes: 1 addition & 1 deletion dev/traffic_ops/traffic.vault.dbconf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ name: traffic.vault.dbconf.yml

development:
driver: postgres
open: host=db port=5432 user=traffic_vault password=twelve12 dbname=traffic_vault_development sslmode=disable
open: host=db port=5432 user=traffic_vault password=twelve dbname=traffic_vault_development sslmode=disable
2 changes: 1 addition & 1 deletion dev/traffic_router/conf/traffic_ops.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
traffic_ops.username=admin
traffic_ops.password=twelve12
traffic_ops.password=twelve
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=twelve12
- POSTGRES_PASSWORD=twelve
hostname: db
networks:
- ciab
Expand Down
6 changes: 3 additions & 3 deletions docs/source/development/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Wait for Traffic Monitor to start, which will indicate that the SSL keys have be
.. code-block:: shell
:caption: Run ``t3c-apply`` with debugging enabled

[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
[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
API server listening at: [::]:2347

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``.
Expand Down Expand Up @@ -203,7 +203,7 @@ Wait for Traffic Monitor to start, which will indicate that the SSL keys have be
.. code-block:: shell
:caption: Run ``t3c-apply`` with debugging enabled

[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
[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
API server listening at: [::]:2348

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``.
Expand Down Expand Up @@ -270,7 +270,7 @@ Wait for Traffic Monitor to start, which will indicate that the SSL keys have be
.. code-block:: shell
:caption: Run ``t3c-apply`` with debugging enabled

[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
[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
API server listening at: [::]:2349

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``.
Expand Down
2 changes: 1 addition & 1 deletion experimental/traffic-portal/nightwatch/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"adminPass": "twelve12",
"adminPass": "twelve",
"adminUser": "admin",
"disableColors": false,
"retryAssertionTimeoutMS": 5000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class UserService {
private lastID = 0;

private testAdminUsername = "test-admin";
private readonly testAdminPassword = "twelve12!";
private readonly testAdminPassword = "twelve!";
private readonly users: Array<ResponseUser> = [
{
addressLine1: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ describe("LoginComponent", () => {

beforeEach(() => {
mockCurrentUserService = jasmine.createSpyObj(["updateCurrentUser", "login", "logout"]);
mockCurrentUserService.login.and.callFake(async (u, p)=>u === "test-admin" && p === "twelve12!");
mockCurrentUserService.login.and.callFake(async (u, p)=>u === "test-admin" && p === "twelve!");
mockCurrentUserService.login.withArgs("tok").and.returnValue(new Promise(r=>r(true)));
mockCurrentUserService.login.withArgs("badToken").and.callFake(
async () => {
throw new Error("bad token");
}
);
mockCurrentUserService.login.withArgs("server error", "twelve12!").and.callFake(
mockCurrentUserService.login.withArgs("server error", "twelve!").and.callFake(
async () => {
throw new Error("some kind of server error occurred");
}
Expand Down Expand Up @@ -91,7 +91,7 @@ describe("LoginComponent", () => {
await expectAsync(component.submitLogin()).toBeRejected();
expect(mockCurrentUserService.login).not.toHaveBeenCalled();
component.u = "test-admin";
component.p = "twelve12!";
component.p = "twelve!";
component.submitLogin();
expect(mockCurrentUserService.login).toHaveBeenCalled();
component.u = "server error";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ describe("CurrentUserService", () => {
});

it("logs users in", async () => {
expect(await service.login("test-admin", "twelve12!")).toBeTrue();
expect(await service.login("test-admin", "twelve!")).toBeTrue();
expect(await service.login("test-admin", "a misspelled password")).toBeFalse();
expect(await service.login("there's no token that includes apostrophes")).toBeFalse();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import { LoggingService } from "../logging.service";
*
* The authenticated user it "manages" is perpetually authenticated, but logging
* in can fail - it expects the credentials to match the existing currentUser's
* username with the password 'twelve12!' (determined by the static 'PASSWORD'
* username with the password 'twelve!' (determined by the static 'PASSWORD'
* property of the service).
*/
@Injectable()
export class CurrentUserTestingService {
public static readonly ADMIN_ROLE = "admin";
public static readonly PASSWORD = "twelve12!";
public static readonly PASSWORD = "twelve!";
public userChanged = new EventEmitter<ResponseCurrentUser>();
public currentUser: ResponseCurrentUser = {
addressLine1: null,
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/cdn-in-a-box/health/to-creds
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@

export TO_URL="https://trafficops.infra.ciab.test:443"
export TO_USER="admin"
export TO_PASS="twelve12"
export TO_PASS="twelve"
2 changes: 1 addition & 1 deletion infrastructure/cdn-in-a-box/variables.env
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ TM_LOG_WARNING=stdout
TM_LOG_INFO=stdout
TM_LOG_DEBUG=stdout
TCH_HOST=tchealthclient
TO_ADMIN_PASSWORD=twelve12
TO_ADMIN_PASSWORD=twelve
TO_ADMIN_USER=admin
TO_ADMIN_FULL_NAME='Fabi Dias'
# Set ENROLLER_DEBUG_ENABLE to true`to debug the enroller with Delve
Expand Down
2 changes: 1 addition & 1 deletion traffic_ops/testing/api/conf/traffic-ops-test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dbname": "traffic_ops_development",
"description": "dev database traffic_ops_development",
"hostname": "localhost",
"password": "twelve12",
"password": "twelve",
"port": "5432",
"type": "Pg",
"user": "traffic_ops"
Expand Down
2 changes: 1 addition & 1 deletion traffic_ops/testing/api_contract/v4/data/to_data.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"user": "admin",
"password": "twelve12",
"password": "twelve",
"url": "https://localhost/api/4.0",
"port": 443,
"db_name":"traffic_ops",
Expand Down
2 changes: 1 addition & 1 deletion traffic_portal/test/integration/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"baseUrl": "https://localhost",
"login": {
"username": "admin",
"password": "twelve12"
"password": "twelve"
},
"junitReporter": false
}
Expand Down