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

[APP 2911] Step Towards Removal of Legacy Robot API Keys #4374

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

bashar-515
Copy link

@bashar-515 bashar-515 commented Sep 19, 2024

This PR almost fully phases out the use of legacy robot API keys by taking out most of the code that explicitly parses for them via a "key" field in the API key handler config to become solely reliant on {"API_KEY_ID": "API_KEY"} (i.e., new API key). Some code still remains to account for a "keys" field - this is the only remaining artifact of legacy keys. Currently, the "keys" field maps to a list of the ID's of the robot's API keys - so it's redundant. It's necessary, though, for backwards compatibility. RDK currently requires the "keys" field, so the phasing out of legacy keys in app hasn't allowed for the removal of "keys" as a field. Also in this PR is the reconfiguration of various tests in order to account for the change in APP slightly affecting the structure of the API key auth config.

Testing: local testing suites pass and my dummy local robot as able to connect manually.

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Sep 19, 2024
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Sep 19, 2024
@bashar-515 bashar-515 changed the title [APP 2911] [APP 2911] Step Towards Removal of Legacy Robot API Keys Sep 19, 2024
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Sep 19, 2024
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Sep 19, 2024
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants