Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove gdrive sync credentials #2556

Merged
merged 5 commits into from
Nov 28, 2024
Merged
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
12 changes: 4 additions & 8 deletions documentation/docs/authors/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ yarn install

### Setup required configuration

All configuration is pre-established in the `packages/scripts/config` folder, however is encrypted to avoid sharing sensitive information publicly.
In order to sync content from google drive, a set of application credentials is required to be placed in the `packages/scripts/config` folder

You must obtain a `private.key` file from the development team which you can copy into the `packages/scripts/config` folder.
Developer credentials can be requested from the dev team, or you can use your own credentials generated following instructions at:
https://developers.google.com/identity/protocols/oauth2/web-server#creatingcred

Once the file is copied run the following command:
If creating your own credentials the `redirect_uri` should be set to http://localhost:3003/oauth2callback and authorized javascript origins to include http://localhost

```
yarn scripts config decrypt
```

You will see additional files populate to the `packages/scripts/config` folder such as they become decrypted

### Connect to Google Drive

Expand Down
11 changes: 0 additions & 11 deletions packages/@idemsInternational/gdrive-tools/credentials.dev.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/@idemsInternational/gdrive-tools/src/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const PATHS = {
PACKAGE_ROOT_DIR,
DEFAULT_OUTPUT_FOLDER: path.join(PACKAGE_ROOT_DIR, "output"),
DEFAULT_CACHE_FOLDER: path.join(PACKAGE_ROOT_DIR, "cache"),
DEFAULT_CREDENTIALS: path.join(PACKAGE_ROOT_DIR, "credentials.dev.json"),
DEFAULT_CREDENTIALS: path.join(PACKAGE_ROOT_DIR, "credentials.json"),
DEFAULT_TOKEN: path.join(PACKAGE_ROOT_DIR, "token.json"),
LOGS_DIR: path.join(PACKAGE_ROOT_DIR, "logs"),
};
3 changes: 1 addition & 2 deletions packages/scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# gdrive service account for gdrive download scripts
config/*
!config/public.key
!config/*.enc
!config/.gitkeep
build
dist
exec
Expand Down
Empty file.
Binary file removed packages/scripts/config/credentials.json.enc
Binary file not shown.
4 changes: 0 additions & 4 deletions packages/scripts/config/public.key

This file was deleted.

42 changes: 0 additions & 42 deletions packages/scripts/src/commands/config/decrypt.ts

This file was deleted.

53 changes: 0 additions & 53 deletions packages/scripts/src/commands/config/encrypt.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/scripts/src/commands/config/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/scripts/src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Command } from "commander";
import appDataCmd from "./app-data";
import compileCmd from "./compile";
import e2eDataCmd from "./e2e-data";
import configCmd from "./config";
import deploymentCmd from "./deployment";
import versionCmd from "./version";
import workflowCmd from "./workflow";
Expand All @@ -20,7 +19,6 @@ program.version(version).description(`IDEMS App Scripts ${version}`);
program.addCommand(appDataCmd);
program.addCommand(compileCmd);
program.addCommand(e2eDataCmd);
program.addCommand(configCmd);
program.addCommand(deploymentCmd);
program.addCommand(versionCmd);
program.addCommand(workflowCmd);
Expand Down
Loading