Skip to content
Snippets Groups Projects

Safer client config for admins

Merged Steve Traylen requested to merge safe into master
1 unresolved thread
2 files
+ 24
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 23
0
# 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.
Loading