#10456 Need to store an api key into private.git
Closed: Fixed 2 years ago by kevin. Opened 2 years ago by schlupov.

Our python script can get data via API from https://stats.uptimerobot.com/jJooJCjq7o. To do this, I need to have the read-only API key in private.git. I saved the API key to copr-be.aws.fedoraproject.org as an environmental variable, just run echo $copr_cdn_api_key. I can send the value GPG encrypted, however, I prefer you to get the key from the copr server.

Content would be:

copr_cdn_api_key: <copr_cdn_api_key>

Can you save the API key, please?


Commit b9fa39f0 relates to this ticket

Ah, I already merged the ansible.git pull request which depends on this - breaking
the copr-backend playbook :-( lemme know if I should revert for now, in case this
should take too long to resolve.

Nit, I would name it "copr_uptimerobot_api_key_ro".

I changed the name of the variable.
Please, don't forget that it is now copr_uptimerobot_api_key_ro.

@schlupov: I can't find the variable in env variable, but storing it to ENV globally would be certainly a bad idea anyway. I suppose you misstyped the instructions here.

Anyway, there are other credentials we need to store, Red Hat Subscription password, IBM Cloud password and Power9 OpenStack password. I've created a new file on copr-be (production):

[root@copr-be ~][PROD]# cat /root/store-to-private-git 
---
copr_openstack_osuosl_org_password: ...
copr_cloud_ibm_password: ...
copr_red_hat_subscription_password: ...
copr_uptimerobot_api_key_ro: ...

Can all those please be added (read them from that file, and drop the file).

Done.

For the record when we add vars in private we add a comment:

# purpose: what is this username or password for?
# where to change: If you wanted to change this, where would you do so?
# impact of public release: what would happen if this was released?
# last changed: YYYY-MM-DD

I filled these in for these vars as best I know. ;)

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #917 Merged 2 years ago