laniakea-api-server 0.3.3__tar.gz → 0.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/PKG-INFO +1 -1
  2. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/queue.py +5 -1
  3. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/deployments.py +3 -1
  4. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/pyproject.toml +1 -1
  5. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/.github/workflows/publish.yml +0 -0
  6. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/.gitignore +0 -0
  7. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/LICENSE +0 -0
  8. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/README.md +0 -0
  9. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/__init__.py +0 -0
  10. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/auth.py +0 -0
  11. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/cli.py +0 -0
  12. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/config.py +0 -0
  13. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/credential_parser.py +0 -0
  14. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/database.py +0 -0
  15. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/installer.py +0 -0
  16. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/main.py +0 -0
  17. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/models.py +0 -0
  18. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/.health.py.swp +0 -0
  19. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/__init__.py +0 -0
  20. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/agent.py +0 -0
  21. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/agents.py +0 -0
  22. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/credentials.py +0 -0
  23. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/health.py +0 -0
  24. {laniakea_api_server-0.3.3 → laniakea_api_server-0.3.5}/laniakea_api/routers/tfstate.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: laniakea-api-server
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary: Laniakea Queue API — OIDC-authenticated gateway for cloud deployment orchestration
5
5
  Project-URL: Homepage, https://github.com/laniakea/laniakea-api
6
6
  Project-URL: Issues, https://github.com/laniakea/laniakea-api/issues
@@ -151,7 +151,11 @@ def vault_list_service_creds(user_sub: str) -> list:
151
151
  out = []
152
152
  for n in names:
153
153
  data = vault_read_service_creds(user_sub, n)
154
- out.append({"name": n, "service_type": _infer_service_type(data)})
154
+ # public endpoint, not a secret. The Vault key follows the form field
155
+ # naming (openstack_auth_url); legacy entries may use os_auth_url.
156
+ out.append({"name": n, "service_type": _infer_service_type(data),
157
+ "os_auth_url": data.get("openstack_auth_url")
158
+ or data.get("os_auth_url") or ""})
155
159
  return out
156
160
 
157
161
  def vault_read_service_creds(user_sub: str, name: str) -> dict:
@@ -35,8 +35,10 @@ def _strip_secrets(deployment: DeploymentRequest) -> dict:
35
35
  d = copy.deepcopy(deployment.model_dump())
36
36
  provider_key = deployment.selected_provider.lower()
37
37
  provider = d.get("cloud_providers", {}).get(provider_key, {})
38
+ # NOTE: ssh_key is deliberately NOT stripped — it is the user's PUBLIC
39
+ # key (sourced from the dashboard DB) and the agent needs it in the job.
38
40
  for field in [
39
- "ssh_key", "aws_access_key", "aws_secret_key", "bastion_ip",
41
+ "aws_access_key", "aws_secret_key", "bastion_ip",
40
42
  "private_network_proxy_host", "os_application_credential_id",
41
43
  "os_application_credential_secret",
42
44
  ]:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "laniakea-api-server"
7
- version = "0.3.3"
7
+ version = "0.3.5"
8
8
  description = "Laniakea Queue API — OIDC-authenticated gateway for cloud deployment orchestration"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }