Skip to content

docs: add serviceaccount-api-access and update faq#421

Open
IvanStukov wants to merge 5 commits intocozystack:mainfrom
IvanStukov:docs/serviceaccount-api-token
Open

docs: add serviceaccount-api-access and update faq#421
IvanStukov wants to merge 5 commits intocozystack:mainfrom
IvanStukov:docs/serviceaccount-api-token

Conversation

@IvanStukov
Copy link
Collaborator

@IvanStukov IvanStukov commented Feb 13, 2026

Summary

  • Add new documentation page ServiceAccount Tokens for API Access (operations/faq/serviceaccount-api-access.md) for both v0 and v1
  • Update FAQ index pages to use collapsible <details>/<summary> sections for better
    readability
  • Add weight and aliases to generate-kubeconfig.md for consistent navigation

Summary by CodeRabbit

  • New Documentation

    • Added guides (v0 and v1) for retrieving and using ServiceAccount tokens for API access, including retrieval, usage, security notes, and connection test steps.
  • Documentation

    • Converted many FAQ sections into collapsible detail blocks to improve navigation and layout.
    • Updated generate-kubeconfig pages (v0 and v1) with front-matter metadata (weight and aliases) for better discoverability.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Ivan Stukov <stukov.ivan.time@gmail.com>
@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit 0406f6e
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/6993aca36340d20008f49b26
😎 Deploy Preview https://deploy-preview-421--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 13, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

This PR converts several FAQ section headings into collapsible <details> blocks, adds front-matter metadata to generate-kubeconfig pages, and introduces new ServiceAccount API access guides for v0 and v1 (retrieval, usage, security, and test commands).

Changes

Cohort / File(s) Summary
FAQ Index Restructuring
content/en/docs/v0/operations/faq/_index.md, content/en/docs/v1/operations/faq/_index.md
Replaced plain Markdown headings with <details>/<summary> blocks, inserted <br> separators and reorganized presentation (no content changes).
Generate-Kubeconfig Metadata
content/en/docs/v0/operations/faq/generate-kubeconfig.md, content/en/docs/v1/operations/faq/generate-kubeconfig.md
Added weight: 30 to front matter and added versioned alias entries.
ServiceAccount API Access Guide
content/en/docs/v0/operations/faq/serviceaccount-api-access.md, content/en/docs/v1/operations/faq/serviceaccount-api-access.md
Added new docs explaining prerequisites, Dashboard/kubectl token retrieval, kubeconfig/curl usage examples, token security note, and test connection commands.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I nudged the headings into a fold,
tucked tokens into pages bold.
Click to open, click to see,
docs hop neat and tidy—whee!
Off I go, with carrot glee 🥕

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Merge Conflict Detection ⚠️ Warning ❌ Merge conflicts detected (4 files):

⚔️ content/en/docs/v0/operations/faq/_index.md (content)
⚔️ content/en/docs/v0/operations/faq/generate-kubeconfig.md (content)
⚔️ content/en/docs/v1/operations/faq/_index.md (content)
⚔️ content/en/docs/v1/operations/faq/generate-kubeconfig.md (content)

These conflicts must be resolved before merging into main.
Resolve conflicts locally and push changes to this branch.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: adding a new serviceaccount-api-access documentation page and updating FAQ index pages with collapsible sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch docs/serviceaccount-api-token
  • Post resolved changes as copyable diffs in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @IvanStukov, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the documentation by introducing a comprehensive guide on ServiceAccount tokens for API access, which is crucial for secure and programmatic interaction with the Cozystack API. Additionally, it improves the user experience of the FAQ sections by making them collapsible, and refines navigation consistency across related documentation pages.

Highlights

  • New Documentation Page: A new documentation page titled 'ServiceAccount Tokens for API Access' has been added for both v0 and v1 documentation, providing guidance on retrieving and using ServiceAccount tokens.
  • Improved FAQ Readability: The FAQ index pages for both v0 and v1 have been updated to use collapsible <details>/<summary> sections, enhancing readability and user experience.
  • Consistent Navigation: The generate-kubeconfig.md documentation page has been updated to include weight and aliases front matter, ensuring consistent navigation and linking within the documentation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • content/en/docs/v0/operations/faq/_index.md
    • Converted all FAQ entries into collapsible sections using <details> and <summary> tags.
    • Added a new entry linking to the ServiceAccount API Access documentation.
  • content/en/docs/v0/operations/faq/generate-kubeconfig.md
    • Added weight front matter to control navigation order.
    • Included a new alias for consistent linking.
  • content/en/docs/v0/operations/faq/serviceaccount-api-access.md
    • New documentation page created for ServiceAccount token retrieval and usage.
    • Provided steps for both Dashboard and kubectl methods.
    • Included instructions for testing API connection with the token.
  • content/en/docs/v1/operations/faq/_index.md
    • Converted all FAQ entries into collapsible sections using <details> and <summary> tags.
    • Added a new entry linking to the ServiceAccount API Access documentation.
  • content/en/docs/v1/operations/faq/generate-kubeconfig.md
    • Added weight front matter to control navigation order.
    • Included a new alias for consistent linking.
  • content/en/docs/v1/operations/faq/serviceaccount-api-access.md
    • New documentation page created for ServiceAccount token retrieval and usage.
    • Provided steps for both Dashboard and kubectl methods.
    • Included instructions for testing API connection with the token.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request introduces a new documentation page for ServiceAccount tokens and improves the FAQ index readability by using collapsible <details>/<summary> sections. The documentation is clear, well-structured, and follows the existing versioning pattern. I have provided some feedback regarding the placement of generic aliases to ensure they point to the latest documentation version (v1) and identified some redundant alias entries.

Signed-off-by: Ivan Stukov <stukov.ivan.time@gmail.com>
First, get the API server address:

```bash
export API_SERVER=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In prerequisites we need either kubectl config or OIDC credentials. I think we should be able to get everything either from the dashboard or using kubectl. User might not have configured kubectl for this cluster

Next, extract the CA certificate to a file:

```bash
kubectl config view --minify --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}' | base64 -d > ca.crt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may lead to unexpected results if

  • current kubeconfig does has multiple clusters and needed cluster isn't first
  • current kubeconfig does not have configuration for needed cluster at all

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@content/en/docs/v0/operations/faq/serviceaccount-api-access.md`:
- Around line 22-23: Replace the ambiguous sentence "The Secret has the same
name as the tenant" with a clear description that the Secret and namespace use
the tenant- prefix (e.g., for tenant "team1" the namespace and Secret are named
"tenant-team1"); update the phrasing around the examples that show
"tenant-<name>" so the doc states explicitly that the secret name follows the
namespace pattern "tenant-<name>" rather than the bare tenant name.
🧹 Nitpick comments (1)
content/en/docs/v0/operations/faq/serviceaccount-api-access.md (1)

53-82: Consider documenting RBAC permissions scope.

While the guide effectively covers token retrieval and usage, it might be helpful to briefly mention what permissions or RBAC roles the ServiceAccount has by default, especially since the security warning emphasizes treating these tokens as credentials.

This would help users understand the access level they're granting when sharing these tokens.

IvanStukov and others added 3 commits February 13, 2026 22:17
Signed-off-by: Ivan Stukov <stukov.ivan.time@gmail.com>
Signed-off-by: Ivan Stukov <stukov.ivan.time@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Ivan Stukov <stukov.ivan.time@gmail.com>
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