Skip to content
Snippets Groups Projects
Commit ba6f3a60 authored by Steve Traylen's avatar Steve Traylen Committed by Alex Iribarren
Browse files

Safer client config for admins

parent 81d89dd6
Branches
No related tags found
1 merge request!134Safer client config for admins
# Avoid using production as default
For koji admins who are frequently running commands such as `koji add-tag` on test koji instances it can be dangerous to have the client use the default koji service in `/etc/koji.conf` as the production service.
To override the default configuration file create a file `~/.config/koji/prod.conf` containing:
```ini
[koji]
server = https://useprodprofile.cern.ch/kojihub
weburl = https://useprodprofile.cern.ch
topurl = https://useprodprofile.cern.ch/kojifiles
topdir = https://useprodprofile.cern.ch/kojifiles
authtype = kerberos
[prod]
server = https://kojihub.cern.ch/kojihub
weburl = https://koji.cern.ch
topurl = https://koji.cern.ch/kojifiles
topdir = https://koji.cern.ch/kojifiles
authtype = kerberos
```
Once done the production profile must be explicitly specified with `koji -p prod`. All koji commands will fail unless a profile is specified.
......@@ -57,6 +57,7 @@ nav:
- 'Red Hat support': support/redhat.md
- 'Koji':
- 'Introduction': koji/introduction.md
- 'Safe admin client config': koji/safeclient.md
- 'Building RPMs': koji/building.md
- 'Adding users to koji': koji/addingusers.md
- 'Untagging policy': koji/untagging.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment