Gcl-iam

Latest version: v0.9.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.7.0

None

0.6.0

**Features**
- **Added endpoint property accessor for `GenesisCoreTestNoAuthRESTClient`**:
Introduced a read-only `endpoint` property to safely expose the `_endpoint` value, enhancing encapsulation and enabling external components to retrieve the API base URL without direct internal access.
- **New test client functions for project-based bindings**:
Implemented utility functions to streamline the bootstrapping of bindings by project, simplifying setup for test scenarios requiring project-specific configurations (authored by George Melikov).

**nhancements**
- **Dynamic parameter support for `create_role` method**:
- Added optional `description` parameter and arbitrary `**kwargs` to enable flexible role configurations while preserving backward compatibility.
- Improved code flexibility by dynamically constructing request bodies from combined parameters, allowing advanced testing scenarios.
- Simplified future API extensions by decoupling method signatures from potential changes to role creation requirements.

0.5.0

**New Feature: Retrieve User Roles in Functional Tests**
- Added the `get_user_roles` method to the `GenesisCoreTestNoAuthRESTClient` class to streamline role verification during testing. This method fetches a user's assigned roles via the `/iam/users/{user_uuid}/actions/get_my_roles` endpoint and returns a parsed JSON response, enabling easier validation of role assignments in test scenarios.

0.4.1

Changed the response status code from 400 Bad Request to 401 Unauthorized when handling InvalidAuthTokenError exceptions. This aligns with RFC 6750 standards for bearer token usage, where invalid tokens should return a 401 status with a WWW-Authenticate header (implied by framework conventions).

0.4.0

**Enhanced IAM Testing Infrastructure & Client Improvements**

This release focuses on strengthening the IAM testing framework, introducing new authentication features, expanding REST client utilities, and improving test reliability. Below are the key updates:

---

**New Features**
- **CRUD Operations for Users & Organizations**:
- Added user management methods: `list_users`, `update_user`, `change_user_password`, and `delete_user`.
- Introduced organization management: `create_organization`, `list_organizations`, `update_organization`, and `delete_organization`.
- Implemented project creation utilities and organization member management methods.
- **Role Binding Utilities**:
- Added `create_or_get_role_binding` to prevent duplicate role assignments during testing.

---

**Authentication Improvements**
- **Enhanced `GenesisCoreAuth` Class**:
- Added `project_id` parameter for project-scoped authentication tokens.
- Introduced `DEFAULT_ENDPOINT` for consistent URL construction.
- Implemented `get_me_url()` to fetch user details and refactored URL generation via `get_client_url()`.
- Authentication scope now dynamically includes `project_id` when provided.

---

**Testing Enhancements**
- **Unique Test Data Generation**:
- Replaced static IDs with `sys_uuid.uuid4()` for dynamic role/permission names, reducing test interdependencies.
- **Dummy Client Updates**:
- Aligned token generation in `DummyGenesisCoreTestRESTClient` with `sys_uuid` changes for consistent test data.

0.3.2

None

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.