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

Remove unused vars #27

Closed
wants to merge 1 commit into from
Closed

Conversation

jhult
Copy link
Member

@jhult jhult commented Jan 29, 2025

Remove outdated/unused variables

@@ -19,16 +19,10 @@ let
secretsImportScript = pkgs.writeScript "secrets-import" ''
#! /bin/sh
set -eu
NETLIFY_AUTH_TOKEN="$(cat /run/keys/netlify-auth-token)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the 'prod' build server also builds and deploys other Granola repos besides 'mina-indexer'. They require this Netlify token.

CLOUDFLARE_ACCOUNT_ID="$(cat /run/keys/cloudflare-account-id)"
export CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_API_TOKEN="$(cat /run/keys/cloudflare-api-token)"
export CLOUDFLARE_API_TOKEN
LINODE_OBJ_ACCESS_KEY="$(cat /run/keys/linode-access-key)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These keys should be left on the box because we may want to build (rollback) to a build that requires the Linode object store.

chown bk:keys /run/keys/cloudflare-account-id &&
chown bk:keys /run/keys/cloudflare-api-token &&
chown bk:keys /run/keys/linode-access-key &&
chown bk:keys /run/keys/linode-secret-key &&
chmod 0400 /run/keys/buildkite-agent-token &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was probably an accidental deletion.

@jhult
Copy link
Member Author

jhult commented Feb 6, 2025

These changes have in fact not been made on the machines. It sounds like we should just leave these variables intact; closing.

@jhult jhult closed this Feb 6, 2025
@jhult jhult deleted the remove-unused-vars branch February 6, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants