Skip to content

Stub dependencies#605

Draft
sasha-apolo wants to merge 7 commits intomasterfrom
stub-dependencies
Draft

Stub dependencies#605
sasha-apolo wants to merge 7 commits intomasterfrom
stub-dependencies

Conversation

@sasha-apolo
Copy link
Contributor

No description provided.

…es configurations.

- Integrated deployment and service definitions for platformadmin, platformconfig, and platformnotifications components.
- Updated `cluster.sh` to apply the new configuration files during cluster setup.
…, and migrations.

- Added reusable Docker-based stubs for testing platformadmin (nginx), Kubernetes, and database migrations.
- Updated integration tests to utilize new fixtures (`docker_smart_stubs`, `kube_api_stub`, and `run_platformadmin_migrations`).
- Replaced platformauthapi references with platformadmin in tests and configurations.
- Enhanced Docker network handling with isolated test environment setup.
…r improved test coverage.

- Added support for new API routes (`/api/v1/notifications`, `/api/v1/users/{user}/token`, `/api/v1/clusters`) in stubs.
- Improved `create_local_app_server` to dynamically assign ports and expose the address.
- Simplified `regular_user_factory` fixture and integrated cluster creation while handling exceptions.
- Adjusted `create_auth_config` and related logic to align with updated `neuro-admin-client` behavior.
…e exception handling in auth integration tests.
…on handling logic

- Replaced custom authorization logic with `get_untrusted_user_name` from `neuro-admin-client`.
- Streamlined permission filtering using `get_authorized_entities` API.
- Updated dependency version and adjusted `pyproject.toml` and `poetry.lock` accordingly.
@gitguardian
Copy link

gitguardian bot commented Sep 24, 2025

⚠️ GitGuardian has uncovered 8 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
20185324 Triggered JSON Web Token 475eff1 tests/k8s/platformadmin.yml View secret
20296912 Triggered Generic High Entropy Secret 4fd065a tests/integration/stubs.py View secret
17292849 Triggered JSON Web Token 475eff1 tests/k8s/platformadmin.yml View secret
17292850 Triggered JSON Web Token 475eff1 tests/k8s/platformnotifications.yml View secret
20185325 Triggered JSON Web Token 475eff1 tests/k8s/platformconfig.yml View secret
10550565 Triggered Generic Password 475eff1 tests/k8s/platformconfig.yml View secret
16706040 Triggered JSON Web Token 475eff1 tests/k8s/platformadmin.yml View secret
15010373 Triggered Generic High Entropy Secret 475eff1 tests/k8s/platformnotifications.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants