1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-03 21:36:15 +01:00
github.com_openSUSE_osc/osc
Daniel Mach 82216c72b4 Implement reading credentials from environmental variables
Options for apiurls can be set via OSC_HOST_<ALIAS>_<OPTION>=...
This requires a configured alias in the config file.

Setting the default apiurl via OSC_APIURL=... was working already.
Also OSC_CONFIG= / --config= was already implemented to skip loading configuration entirely.

Options for the default apiurl can be now set via:
  OSC_USERNAME=...
  OSC_CREDENTIALS_MGR_CLASS=...
  OSC_PASSWORD=...

This, for example, makes running osc in containers with
credentials stored in environmental variables possible:
OSC_CONFIG= OSC_APIURL=<url> OSC_USERNAME=<user> OSC_PASSWORD=<password> osc ...
2024-01-08 15:21:45 +01:00
..
_private Support installing osc into virtualenv 2023-11-03 10:21:42 +01:00
commands The repo list command now resolves and displays flags (build, publish, ...) 2023-07-07 13:15:34 +02:00
git_scm Fix GitStore to error out properly if there is no 'origin' remote in the git repo 2023-08-28 09:54:38 +02:00
output Add 'output' module for handling console output 2023-06-02 15:58:31 +02:00
util Drop unused 'exclude_unset' argument from BaseModel.dict() method 2024-01-04 10:20:58 +01:00
__init__.py release 1.5.1 2023-12-04 15:05:14 +01:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
build.py productcompose: Support building with updateinfo.xml data 2023-11-24 15:47:12 +01:00
checker.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
cmdln.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
commandline.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
conf.py Implement reading credentials from environmental variables 2024-01-08 15:21:45 +01:00
connection.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
core.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
credentials.py Fix credentials managers to consistently return Password 2024-01-08 15:21:45 +01:00
fetch.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
grabber.py Fix grabber to work with old urllib3 versions that do not contain URLSchemeUnknown exception 2023-05-15 22:38:21 +02:00
meter.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
OscConfigParser.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
oscerr.py Convert to using f-strings 2024-01-06 10:00:38 +01:00
oscssl.py oscssl: Fix sys.version_info comparison 2022-10-24 13:44:31 +02:00
py.typed Add py.typed marker to osc 2022-12-05 15:28:02 +01:00
store.py Convert to using f-strings 2024-01-06 10:00:38 +01:00