openstack

An OpenStack provider that connects to OpenStack cloud services and collects information about identities, projects, virtual machines, images, storage volumes, snapshots, networks, and subnets.

In plain words
What is it for?
Use it to authenticate with OpenStack, gather cloud inventory, store that inventory in an in-process SQLite database, and expose it through a REST API.
Why use it?
It gives an application one provider interface for viewing OpenStack resources instead of handling each OpenStack service separately.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/kubev2v/forklift-console-plugin/openstack
Clone the repo
git clone --depth 1 https://github.com/kubev2v/forklift-console-plugin

Made for: Cursor.

Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,219 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.03219
Opus 5 $0.00010 $0.01610
Sonnet 5 $0.00004 $0.00644
Haiku 4.5 $0.00002 $0.00322

Measured yesterday against content hash e7ea60d8d5e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openstack scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/backend/providers/openstack.mdc · 326 lines

How it starts

The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenStack Provider

Analyzed from commit: 412c71822 on 2026-05-04

Architecture Overview

The OpenStack provider uses gophercloud to talk to five OpenStack services, collects inventory into an in-process SQLite DB, and exposes it via a REST API.

Keystone (Identity v3)   ──► Region, Project
Nova    (Compute v2)     ──► VM (servers.Server), Flavor
Glance  (Image v2)       ──► Image
Cinder  (Block Storage v3) ► Volume, VolumeType, Snapshot
Neutron (Network v2)     ──► Network, Subnet

Source: pkg/lib/client/openstack/client.go


Credentials (Secret Keys)

All values are read from the Provider's referenced Secret.data map.

Secret key Purpose
authType password (default), token, or applicationcredential
username Keystone username (password & app-credential auth)
userID Alternative to username
password Keystone password
applicationCredentialID App credential ID
applicationCredentialName App credential name
applicationCredentialSecret App credential secret
token Pre-existing token (token auth)
projectName / projectID Scoped project
domainName / domainID Keystone domain
userDomainName / userDomainID User's domain
projectDomainName / projectDomainID Project's domain
defaultDomain Fallback domain
regionName OpenStack region to use
insecureSkipVerify Skip TLS verification ("true")
cacert PEM-encoded CA certificate
availability Endpoint availability: public (default), internal, admin

Provider spec.url is the Keystone auth URL (e.g. https://openstack.example.com:5000/v3).


Inventory Collection

Collector Lifecycle

pkg/controller/provider/container/openstack/collector.go

Phases: Started → Load → Loaded → Parity → Refresh (loop)

Phase Action
Started Client.Connect() — authenticate with Keystone, verify user projects
Load Full list of all resources via adapters, bulk insert into DB
Loaded First refresh pass (detect deletes + updates)
Parity Start DB watches (VMEventHandler), mark parity = true
Refresh Every 10 seconds: delete missing resources, upsert changed ones

Read the full file on GitHub · 326 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 326 lines · 20 tokens per session scan A e7ea60d8d5e2

Subscribe to this mod's changes

openstack is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed 2d ago), licensed Apache-2.0. It adds 20 tokens to every session and 3,219 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.