turbot / steampipe-plugin-fastly

Use SQL to instantly query services, ACLs and more from Fastly. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/fastly
Apache License 2.0
4 stars 0 forks source link

Potential design for moving service information out of connection config #29

Open cbruno10 opened 1 month ago

cbruno10 commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, each connection requires a service ID, which makes it difficult to get all service info (which can be done with an aggregator, but feels a bit cumbersome). Also, for resources that don't require service information, a user shouldn't need to pass service info into the connection.

Describe the solution you'd like

However, some possible limitations:

Describe alternatives you've considered Creating an aggregator and a connection for each service

Additional context Add any other context or screenshots about the feature request here.

ParthaI commented 1 month ago

Hi @cody / @timoguin ,

I have pushed some rough changes to the issue-29 branch based on the design discussed above.

It would be great if you could test it out in this branch and share your feedback with us. Once the table design is finalized, I will push the cleanup code changes and documentation updates before raising the PR.

Changes Overview:

The overall functionality will remain the same. Previously, results were obtained per connection per service ID. Now, results will be obtained per connection per api_key.

The Engineer role is required to list services.

I have invited a user with the "Access to billing, stats & analytics" role but am still able to list services with that user's API Key.

Screenshot 2024-05-30 at 8 14 52 PM

Steps to test the changes in the issue-29 branch:

  1. Clone the repository: git clone https://github.com/turbot/steampipe-plugin-fastly.git
  2. Navigate to the project directory: cd steampipe-plugin-fastly
  3. Check out the issue-29 branch: git checkout issue-29
  4. Build the plugin: make
  5. Run the query to test the changes.

@cody, please review the table design and let me know if it looks good. Any suggestions would be highly appreciated.

Thanks!

ParthaI commented 4 weeks ago

Hi @cbruno10, @timoguin,

I wanted to provide an update: I've pushed additional changes to the same branch, issue-29, to support backward compatibility. Since we aren't sure how users are utilizing this plugin, removing support for the service_id from the connection config might cause issues in their environments. The changes are currently in this PR.

Changes overview:

Please let me know if these changes look good or if any adjustments are needed. I'm open to making changes based on your suggestions.

Thanks!