Skip to content

Commit

Permalink
fix: change-compromised-key (#20)
Browse files Browse the repository at this point in the history
* Removing from blackbox: secrets/active-road-365118-2eca6b7b8fd9.json

* registered in blackbox: secrets/active-road-365118-0214022979ee.json

* fix: change-compromised-key

* fix
  • Loading branch information
hseeberger authored Oct 15, 2023
1 parent 42be672 commit f022cb4
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .blackbox/blackbox-files.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
secrets/active-road-365118-2eca6b7b8fd9.json
secrets/active-road-365118-0214022979ee.json
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ jobs:
env:
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
run: |
printenv GCP_SERVICE_ACCOUNT > secrets/active-road-365118-2eca6b7b8fd9.json
printenv GCP_SERVICE_ACCOUNT > secrets/active-road-365118-0214022979ee.json
just test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ target
/.blackbox/pubring.gpg~
/.blackbox/pubring.kbx~
/.blackbox/secring.gpg
active-road-365118-2eca6b7b8fd9.json
active-road-*.json
/secrets/active-road-365118-0214022979ee.json
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async fn main() {

async fn run() -> Result<(), Error> {
let dir = env::var("CARGO_MANIFEST_DIR").unwrap_or_else(|_| ".".to_string());
let key_path = format!("{dir}/secrets/active-road-365118-2eca6b7b8fd9.json");
let key_path = format!("{dir}/secrets/active-road-365118-0214022979ee.json");
let pub_sub_client = PubSubClient::new(key_path, Duration::from_secs(30))?;

let messages = vec!["Hello", "from pub-sub-client"]
Expand Down
2 changes: 1 addition & 1 deletion examples/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async fn main() {

async fn run() -> Result<(), Error> {
let dir = env::var("CARGO_MANIFEST_DIR").unwrap_or_else(|_| ".".to_string());
let key_path = format!("{dir}/secrets/active-road-365118-2eca6b7b8fd9.json");
let key_path = format!("{dir}/secrets/active-road-365118-0214022979ee.json");
let pub_sub_client = PubSubClient::new(key_path, Duration::from_secs(30))?;

let messages = vec!["Hello", "from pub-sub-client"]
Expand Down
Binary file added secrets/active-road-365118-0214022979ee.json.gpg
Binary file not shown.
Binary file removed secrets/active-road-365118-2eca6b7b8fd9.json.gpg
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async fn test() {
// locally the file must be decrypted.
env::set_var("PUB_SUB_BASE_URL", base_url);
let pub_sub_client = PubSubClient::new(
"secrets/active-road-365118-2eca6b7b8fd9.json",
"secrets/active-road-365118-0214022979ee.json",
Duration::from_secs(30),
);
env::set_var("PUB_SUB_BASE_URL", "");
Expand Down

0 comments on commit f022cb4

Please sign in to comment.