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

Testing SPIRE sidecar #125

Open
mrsabath opened this issue Jan 25, 2022 · 0 comments
Open

Testing SPIRE sidecar #125

mrsabath opened this issue Jan 25, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mrsabath
Copy link
Member

mrsabath commented Jan 25, 2022

  1. Using invalid VAULT_ADDR in apps.bash.yaml:
k logs apps-7897fb46bc-n4zdg -c sidecar
parse error: Invalid numeric literal at line 1, column 7
VAULT_TOKEN not set
  1. Using invalid ROLE in apps.bash.yaml:
  • init completes successfully. It should check if the received file is non-zero
  • py error:
k logs apps-6758f7ffb7-9xtt5 -c py
Traceback (most recent call last):
File "/app/main.py", line 11, in <module>
  config.read('./config.ini')
File "/usr/local/lib/python3.9/configparser.py", line 697, in read
  self._read(fp, filename)
File "/usr/local/lib/python3.9/configparser.py", line 1020, in _read
  for lineno, line in enumerate(fp, start=1):
File "/usr/local/lib/python3.9/codecs.py", line 322, in decode
  (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte
  • node:
spire-sidecar$k logs apps-6758f7ffb7-9xtt5 -c node
Running on http://0.0.0.0:8080
  1. Using invalid VAULT_ADDR in apps.python.yaml:
    k logs apps-5cc6fd8d6-n85lp -c sidecar
    

Traceback (most recent call last):
File "/usr/local/bin/run-sidecar-python.py", line 92, in
obj=json.loads(authresponse.text)
File "/usr/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

4.  Using invalid ROLE in `apps.python.yaml`:

k logs apps-765dd86798-dxp28 -c sidecar
Traceback (most recent call last):
File "/usr/local/bin/run-sidecar-python.py", line 94, in
VAULT_TOKEN=obj["auth"]["client_token"]
KeyError: 'auth'

@mrsabath mrsabath added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants